EtherCAT Programming Guide Operation of DI/DO Module
March, 2017 18-9
18
18.7 _ECAT_Slave_DIO_Set_Output_Error_Mode
Syntax
U16 PASCAL_ECAT_Slave_DIO_Set_Output_Error_Mode (U16 CardNo, U16 NodeID,
U16 SlotNo, U16 BitMode)
Purpose
This is for enabling/disabling the retentive function of each output channel on remote DO module
when EtherCAT communication is disconnected.
Note:
1. Please use _ECAT_Slave_DIO_Set_Output_Error_Value (see section 18.8) to set the output value
when EtherCAT communication is disconnected.
2. Retentive function is only supported by R1-EC70E2D0 and R1-EC70F2D0.
Parameter
Name Data type Property Description
CardNo U16 Number Card No.
NodeID U16 Number Node ID
SlotNo U16 Number Slot ID
BitMode U16 Value
Bit 0 ~ 15 represent the output channels Y0 ~ Y15
respectively.
0: Disable
1: Enable
Example
U16 Status;
U16 CardNo=16, NodeID=1, SlotNo=0;
// Enable the retentive function for the first 8 channels.
U16 BitMode=0x0F;
Status=_ECAT_Slave_DIO_Set_Output_Error_Mode (CardNo, NodeID, SlotNo, BitMode);