2 Instruction Descriptions
2-726
NJ-series Instructions Reference Manual (W502)
EC_CoESDOWrite
The EC_CoESDOWrite instruction writes a value to a CoE* object of a specified slave on an EtherCAT
network.
* CoE stands for CAN Application Protocol over EtherCAT.
Instruction Name
FB/
FUN
Graphic expression ST expression
EC_CoESDO
Write
Write Ether-
CAT CoE SDO
FB EC_CoESDOWrite_instance(Execute,
NodeAdr, SdoObj, TimeOut, WriteDat,
WriteSize, Done, Busy, Error, ErrorID,
AbortCode);
Variables
Name Meaning I/O Description Valid range Unit Default
NodeAdr Slave node
address
Input
Node address of the slave to
access
1 to 192
---
---
SdoObj SDO parame-
ter
SDO parameter ---
TimeOut Timeout time 0: 2.0s
1 to 65535: 0.1 to 6553.5 s
Depends on data
type.
0.1 s
20
(2.0 s)
WriteDat Write data Write data
---
---
WriteSize Write data
size
Write data size 1 to 2048
Bytes
AbortCode Abort code Output Response code for SDO
access specified by CoE
0: Normal end
Depends on data
type.
---
---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
NodeAdr OK
SdoObj Refer to Function for details on the structure _sSDO_ACCESS.
TimeOut OK
WriteDat
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
An enumeration, array, array element, structure, structure member, or union member can also be specified.
WriteSize OK
AbortCode OK
EC_CoESDOWrite
Execute Done
NodeAdr Busy
SdoObj Error
TimeOut ErrorID
WriteDat AbortCode
WriteSize
EC_CoESDOWrite_instance