Omron NX701-17 Series User Manual page 127

Nj/nx-series, machine automation controller, cpu unit built-in ethercat port
Hide thumbs Also See for NX701-17 Series:
Table of Contents

Advertisement

(* Input valid condition *)
IF A=TRUE AND InDataInvalid=FALSE THEN
Slav_In:=TRUE;
ELSE
Slav_In:=FALSE;
END_IF;
(* Output data valid *)
IF Slav_Out=TRUE THEN
E001_Out_Bit00:=TRUE;
ELSE
E001_Out_Bit00:=FALSE;
END_IF;
(* Input data valid *)
IF Slav_In=TRUE AND E001_In_Bit00=TRUE THEN
E001_Out_Bit07:=TRUE;
ELSE
E001_Out_Bit07:=FALSE;
END_IF;
Additional Information
You can read the status of the _EC_PDSlavTbl (Process Data Communicating Slave Table) sys-
tem-defined variables from the user program to see if I/O refreshing is normal.
Sample Programming to Check the Validity of the Process Data for
Entire Slaves
With this sample program, validity of process data is checked collectively for all slaves that are con-
nected to the network, and the process data inputs and outputs with the slaves are controlled. The
slave with which the process data is input and output is given the node address 1.
The _EC_PDActive (Process Data Communications Status) system-defined variable is used to see
if the process data inputs and outputs are valid for all of the slaves.
If the process data inputs and outputs with all slaves are valid, E001_Out_Bit07 changes to TRUE
when E001_In_Bit00 changes to TRUE. Also, when the process data outputs with all slaves are
valid, E001_Out_Bit00 changes to TRUE.
NJ/NX-series CPU Unit Built-in EtherCAT Port User's Manual (W505)
6 Process Data Communications and SDO Communications
6
6-9

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents