186
9 PROGRAMMING
9.2 Program Example
Programming condition
When RX0 of the I/O module turns on, RY10 turns on.
When an error occurs, an output module (RY40NT5P) outputs a digital signal.
Devices to be used
Device Description
X1000 RX0 input signal (push button) of the I/O module NZ2GN2S1-32DT (RX0 to RX1F)
Y1010 RY10 output signal (lamp) of the I/O module NZ2GN2S1-32DT (RY0 to RY1F)
X20 Error clear switch Input module (X20 to X2F)
Y30 Major error/moderate error lamp Output module (Y30 to Y3F)
Y31 Minor error lamp
D100 Error code
M0 Contact for master control
N0 Nesting
SB49 Own station data link status (master station)
SM400 Always ON
SW0B0.0 Data link status (remote station)
SW100.0 Major error/moderate error occurrence status (remote station)
SW110.0 Minor error occurrence status (remote station)
W101 Error code Device to be written by link refresh
W200.A Error clear request flag