Send a value to an I2C device.

Hint: The three first levels of the I2C Fieldbus Configurations must be declared. This includes the module ID too.

Inputs

Parameter

Data type

Description

EN

BOOL

Enables the function block.

TRUE to start writing.

ID

UINT

ID is defined in the fieldbus configurator.

LEN

UINT

Length of data in bytes to be written.

Hint: DATA[] can be for example a 10 dimensions array. If you want to write only 2 bytes, set LEN to 2.

DATA[]

USINT[]

Array to send data.

Outputs

Parameter

Data type

Description

Q

BOOL

1 if OK.

FBD Language

Fixed_Image


Created with the Personal Edition of HelpNDoc: Free Kindle producer