188
APPX
Appendix 1 Example for Replacing Ladder by C Language
APPENDIX
Appendix 1
Example for Replacing Ladder by C
Language
This section shows program examples for replacing ladder by C language.
Program example
The following shows a program for writing the data in psData[5] of the station number 0 (own station) to the buffer memory
(address: 0 to 4) of the intelligent device station/remote device station on the station number 1 (target station).
System configuration example
The CPU module is a programmable controller CPU
■
Example for using the ladder program
Precautions
For a programmable controller CPU, in the program example, the data for five words (D0 to D4) is written since the start
address of the buffer memory is specified with a device.
psData[0]
0(0H)
4(4H)
0000H
psData[4]
REMTO instruction request
source (Own station)
REMTO instruction request
target (Target station)
Station number 0
Station number 1
CPU module
Master/local module
Channel 1
Channel 2
Channel 32
Start input number
Network number 1
Intelligent device station/
remote device station
Содержание MELSEC iQ-R C
Страница 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Страница 2: ......
Страница 201: ...I 199 MEMO ...
Страница 203: ...I 201 MEMO ...
Страница 207: ......