Omron CJ1W-ID Series User Manual page 293

Machine automation controller
Table of Contents

Advertisement

 Programming Example
In this example, CJ1W-OD202 is mounted in slot 0 of rack 0.
This example shows how to change output Jxx_Ch0_Out00 to FALSE immediately if the Alarm Out-
put Bit _CJB_IOUnitInfo[0,0,0] changes to TRUE and how to keep the output FALSE until the cause
is removed and the bit is reset with RstOD202.
To prevent the Alarm Output Bit from changing to TRUE momentarily when the inductive load turns
ON, the alarm output is not changed to TRUE for 200 ms after input En_OD202 changes to TRUE.
Variable
OutData
NG
ResetOD202
AlarmOut
J01_Ch1_Out00
_CJB_IOUnitInfo
_CJB_IOUnitInfo[0.0.0]
NG
AlarmOut
OutData
NJ-series CPU Unit Hardware User's Manual (W500)
Initial
Data type
value
BOOL
FALSE
BOOL
FALSE
BOOL
FALSE
BOOL
FALSE
BOOL
ARRAY[0..3,0..9,
0..7] OF BOOL
OutData
T#200ms
ResetOD202
AlarmOut
Address
IOBus://rack#0/slot#0/Ch1_Out/Ch1
_Out00
TON_OD202
TON
In
Q
PT
ET
Appendices
Comment
Output data
TON_OC202 timer output
Reset switch
Error flag
OC202 output
Basic I/O Unit information
array
NG
AlarmOut
Jxx_Ch1_Out00
A-97
A

Advertisement

Table of Contents
loading

Table of Contents