CODESYS V3
Supported Series: LX6C Series, All PLC with CODESYS V3 Ethernet
HMI Settings
Items | Settings | Note |
Protocol | CODESYS V3 | |
Connection | Ethernet | |
Port No. | 11740 | |
Username | Need to be same as the PLC setting | |
Password | Need to be same as the PLC setting |
How to import the tags
- Program PLC_PRG;
- Add Symbol Configuration: Right click the Application, add Symbol Configuration into Device list;
- Check PLC_PRG and its tags, click Build, then click Generate Code;
- After generate successfully, a xml file would be generated inside the directory of the project;
- Create the HMI project and select the CODESYS V3;
- Configure the PLC IP and port number, enable or disable the username and password according to the actual situation;
- Import the xml file;
- After import successfully, the tags would show on the Tag Manager;
Support Variable Type
Data Type | PIStudio Data Format | Range |
---|---|---|
BOOL | Bit | 0~1 |
BYTE | 16-bit Unsigned/Binary/BCD/Hex | 0~255 |
WORD | 16-bit Unsigned/Binary/BCD/Hex | 0~65535 |
DWORD | 32-bit Unsigned/Binary/BCD/Hex | 0~4294967295 |
SINT | 16-bit Signed/Binary/BCD/Hex | -128~127 |
USINT | 16-bit Unsigned/Binary/BCD/Hex | 0~255 |
INT | 16-bit Signed/Binary/BCD/Hex | -32768~32767 |
UINT | 16-bit Unsigned/Binary/BCD/Hex | 0~65535 |
DINT | 32-bit Signed/Binary/BCD/Hex | -2147483648~2147483647 |
UDINT | 32-bit Unsigned/Binary/BCD/Hex | 0~4294967295 |
REAL | 32-bit Floating | -3.402823466E+38~3.402823466E+38 |
LREAL | 64-bit Double | -1.7976931348623158E+308~1.79769313 48623158E+308 |
DATE | 32-bit Unsigned/Binary/BCD/Hex | 1970-01-01~2106-02-07 |
TIME | 32-bit Unsigned/Binary/BCD/Hex | 0D0H0M0S0MS~49D17H2M47S295MS |
LDATE | 32-bit Unsigned/Binary/BCD/Hex | 1970-01-01~2554-07-21 |
LTIME | 32-bit Unsigned/Binary/BCD/Hex | 0NS~213503D23H34M33S709MS551US615NS |
DATE_AND_TIME | 32-bit Unsigned/Binary/BCD/Hex | 1970-1-1-0:0:0~2106-02-07-06:28:15 |
TIME_OF_DAY | 32-bit Unsigned/Binary/BCD/Hex | 0:0:0~23:59:59.999 |
STRING | STRING |