— 4 —
3. Modbus TCP Master setting ..................................................................................................................... 87
4. Create and build a program...................................................................................................................... 89
5. Download and run program ..................................................................................................................... 90
4. Use the controller as Modbus TCP Slave .................................................................................................... 91
1. Device preparation ....................................................................................................................................... 91
2. Slave setting .................................................................................................................................................... 92
3. Create a program and build...................................................................................................................... 96
4. Download and run program ..................................................................................................................... 97
5. Use the controller as Modbus RTU Master..............................................................................................100
1. Device preparation .....................................................................................................................................100
2. Add slave device ..........................................................................................................................................101
3. Modbus RTU Master setting ...................................................................................................................103
4. Create and build a program....................................................................................................................105
5. Download and run program ...................................................................................................................106
6. Use the controller as Modbus RTU Slave .................................................................................................107
1. Device preparation .....................................................................................................................................107
2. Slave setting ..................................................................................................................................................108
3. Create a program and build....................................................................................................................112
4. Download and run program ...................................................................................................................113
7. OPC UA Server setting .....................................................................................................................................116
1. Device preparation .....................................................................................................................................116
2. CODESYS setting .........................................................................................................................................116
3. OPC-UA Client setting ...............................................................................................................................118
8. Counter Input ......................................................................................................................................................120
1. Basic procedure flow..................................................................................................................................120
2. Event procedure flow .................................................................................................................................121
3. Count value setting operation flow .....................................................................................................122
4. Sample program ..........................................................................................................................................123
9. File Access .............................................................................................................................................................128
1. File Access Library setting .......................................................................................................................128
2. Function list ...................................................................................................................................................128
3. Data type ........................................................................................................................................................129
4. Function details ............................................................................................................................................130
5. Sample program ..........................................................................................................................................136
10. Transfer data to Cloud server ........................................................................................................................145
1. File Access Library setting .......................................................................................................................145
2. Function list ...................................................................................................................................................145
3. Function list ...................................................................................................................................................146
4. Function details ............................................................................................................................................148
5. Sample .............................................................................................................................................................152
Monitoring Edit .............................................................. 156
1. Use CONPROSYS HMI ......................................................................................................................................157
1. CODESYS project setting ..........................................................................................................................157
2. Create and build a program....................................................................................................................158
3. Create a monitoring screen with HMI Editor ...................................................................................160
4. HMI run by viewer ......................................................................................................................................162
5. Available components with IEC data type .........................................................................................163