lc625
For more information: https://openplc.discussion.community/post/oscat-library-maths-section-10256390?pid=1309404891

Four Blocks are not convertible (by me). CHK_REAL, REAL_TO_DW, DW_TO_REAL, PIN_CODE.

Reason:

PIN_CODE from PCWorx-OSCAT-Lib uses GET_CHAR. Not included in Oscat Lib. Probably special PCWorx function

PIN_CODE from Codesys-OSCAT-Lib uses the Data Type “Pointer”. As far as I know a Codesys spciality.

REAL_TO_DW and DW_TO_REAL: Both using either REAL_TO_BUF / BUF_TO_REAL (not to find in Lib for PC Worx) or Pointer (Codesys)

CHK_REAL: REAL_TO_DW required

Possible solution: I’wrong and OpenPLC can handle “pointer” Data type or the “getchar” functionality in C++ is possible to be implemented in OpenPLC via “C-Extensions”.

Quote 0 0