![background image](http://html1.mh-extra.com/html/omron/cj1w-cort21/cj1w-cort21_operation-manual_742494078.webp)
3 Data Exchange with the CPU Unit
3-8
CJ-series User Defined CAN Unit Operation Manual for NJ-series CPU Unit (W517)
3-2
Device Variable for CJ-series Unit
When you operate and reference software switches and statuses, use the following device variables for
CJ-series Unit allocated to the I/O port of this Unit.
The function of each device variable for CJ-series Unit is explained below described with variable
names automatically created on the I/O Map View window.
Use the following BOOL-type device variable for CJ-series Units to enable CAN communications from
the user program.
The variable executes some functions when changed to TRUE or changed to FALSE and has an effect
on variables
*_RcvOver
,
*_BusoffErr
and
*_SendOver
variables. For details on these switches, refer to
.
Once a function is set by changing a switch, it is not saved if the power is turned OFF and ON again
and will return to the OFF state
Name of device variable for
CJ-series Unit
Type
R/W
Area
*_EnblCANComm
BOOL
RW
Enable CAN Communications
*_StaComm
WORD
R
Status Communication
*_DelayMsgNo
WORD
R
Number of Delayed Messages
*_ProcMsgNo
WORD
R
Number of Messages to be Processed
3-2-1
Enable CAN Communications
Name of device variable for
CJ-series Unit
Type
R/W
Area
Function
*_EnblCANComm
BOOL
RW
Enable CAN
Communications
<Operation specifications>
FALSE
→
TRUE:
•
In state ST1 (initializing) or ST3 (not
configured), generate error ER9 (net-
work parameter file lost).
•
In state ST4 (configured):
1. Generate event EV3 (enable commu-
nications).
2. Reset
*_RcvOver
.
3. Reset
*_BusoffErr.
4. Reset all receive flags.
TRUE
→
FALSE:
•
In state ST5 (communicating):
1. Generate event EV4 (disable commu-
nications)
2. Reset
*_SendOver.
3. Reset all send triggers
•
In all other states, there is no action.
Summary of Contents for CJ1W-CORT21
Page 2: ......
Page 140: ...Appendices A 6 CJ series User Defined CAN Unit Operation Manual for NJ series CPU Unit W517...
Page 141: ...Index 1 CJ series User Defined CAN Unit Operation Manual for NJ series CPU Unit W517 I Index...
Page 144: ...Index 4 CJ series User Defined CAN Unit Operation Manual for NJ series CPU Unit W517 Index...