Function block library CODESYS_libraries_2 for the CODESYS Development System V3 AXL_ComSerial,When the function block, the following problems are encountered: 1:The data type OF input and output process in function block is Array [0…19] OF BYTE, and the data type OF hardware process is Array [0…9] OF WORD. The two cannot be directly related 2:When using debugging assistant to send data to PLC, the length of the received data can be set on the PLC function block, the actual received data and the data set on the function block are not the same, and the value received by PLC has always been 10 base 36, and the data sent by serial port is not the same.
Process data must be mapped like this:
In the future there will be a public example included in the MSI file. (ref: 206539)