ECATWriteData

PLCopen motion icon Pipe Network motion icon

 FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Writes cyclic parameter (byte offset format).

Inputs

Input

Data Type

Range

Unit

Default

Description

Offset

UINT

0 to 1500

Bytes

No default

Offset in bytes from the beginning of the frameClosed In networking dialect, a message is called a frame..

The maximum size of an EthernetClosed Ethernet is a large, diverse family of frame-based computer networking technologies that operate at many speeds for local area networks (LANs). frame is 1500.

Nbytes

SINT

1, 2, or 4

Bytes

No default

Number of bytes to write.

Value

DINT

-2147483648 to 2147483647

N/A

No default

Value to be written in the image.

Only the number of bytes specified by Nbytes is copied.

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

FALSE, TRUE

N/A

TRUE if the data was written.

See Pipe Network - General Rules.

Remarks


  • This is a low level function and should be used carefully by advanced users.


  • The valid ranges for the Value parameter are:
    For 1 byte: 0 to 255
    For 2 bytes: 0 to 65535
    For 4 bytes: -2147483648 to 2147483647 (The sign bit represents the most significant bit in the data word).

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//For use with Kollmorgen Thermocouple slice I/O to read in deg C
//Lookup offset by exporting ENI file after EtherCAT network is scanned
//Use offst 124 (byte) to write 0 in control word to allow temperature to be shown on status byte

ON WriteControlOnly DO
ECATWriteData
( 124, 1, 0 );
END_DO

See Also

ECATReadData