Appendix; Appendix 1 Example For Replacing Ladder By C Language; Program Example - Mitsubishi Electric MELSEC iQ-R C Programming Manual

Melsec iq-r series programmable controller
Hide thumbs Also See for MELSEC iQ-R C:
Table of Contents

Advertisement

APPENDIX

Appendix 1
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
REMTO instruction request
source (Own station)
Master/local module
CPU module
psData[0]
psData[4]
Channel 32
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.
APPX
188

Appendix 1 Example for Replacing Ladder by C Language

Example for Replacing Ladder by C
Language
Station number 0
Channel 1
Channel 2
Network number 1
REMTO instruction request
target (Target station)
Station number 1
Intelligent device station/
remote device station
0(0H)
4(4H)
Start input number
0000H

Advertisement

Table of Contents
loading

Table of Contents