A-3-2 Program Example For The Ethercat Master - Omron CJ1W- ECT21 Operation Manual

Ethercat slave unit
Hide thumbs Also See for CJ1W- ECT21:
Table of Contents

Advertisement

Appendices
A-3-2
Program Example for the EtherCAT Master
Use the following program example as a guide to detect that the CJ-series CPU Unit with a mounted
EtherCAT Slave Unit enters PROGRAM mode. In the following example, an NJ-series CPU Unit's
built-in EtherCAT port is used as the EtherCAT master.
This program example uses the following items.
Item
_EC_PDSlavTbl[1]
E001_Input001[0]
E001_Output001[0]
WatchDogBit
AccumulationTimer
instruction
SetAlarm instruction
ECAT_Slave_PRG_Mode
A - 10
System-defined variable for the NJ-series CPU Unit to indicate that the
EtherCAT slave (node 01) is performing process data communications.
Device variable assigned to the EtherCAT Slave Unit.
Internal variable to reset the accumulation timer when E001_Input001[0]
changes state.
Instruction that checks for a stop in bit toggling for a preset time amount that
will occur when the CJ-series CPU Unit with a mounted EtherCAT Slave Unit
enters PROGRAM mode. Refer to Timing Considerations on page A-9.
Instruction that creates a user-defined error when the CJ-series CPU Unit
with a mounted EtherCAT Slave Unit enters PROGRAM mode.
External variable to indicate that the CJ-series CPU Unit with a mounted
EtherCAT Slave Unit has entered PROGRAM mode.
Description
CJ-series EtherCAT Slave Units Operation Manual (W541)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cj1w-ect21Sysmac cj series

Table of Contents