15. Shutdown ......................................................................................................................................................... 47
16. Logout ............................................................................................................................................................... 48
1. Installation of the CODESYS ............................................................................................................................ 50
2. Installation of the Package ............................................................................................................................... 52
2. ST Editor window .......................................................................................................................................... 56
3. Basic programming procedure ...................................................................................................................... 59
1. Create a New Project ................................................................................................................................... 59
3. Add I/O modules ........................................................................................................................................... 61
4. I/O Variable Definition ................................................................................................................................ 62
5. Create a program and build ..................................................................................................................... 63
6. Download and run program ..................................................................................................................... 64
1. Parameter ......................................................................................................................................................... 69
2. I/O Mapping.................................................................................................................................................... 69
3. Serial Port ......................................................................................................................................................... 75
1. Serial Communication........................................................................................................................................ 77
1. Device setting ................................................................................................................................................. 77
2. Create a Project ............................................................................................................................................. 77
5. Create a reception program ..................................................................................................................... 80
2. Modbus Master .................................................................................................................................................... 84
1. Device setting ................................................................................................................................................. 84
2. Create a Project ............................................................................................................................................. 84
5. Create a Project ............................................................................................................................................. 91
6. Create and build a program ..................................................................................................................... 93
7. Download and run program ..................................................................................................................... 94
3. Modbus Slave........................................................................................................................................................ 95
1. Device setting ................................................................................................................................................. 95
Table of Contents
- 3 -