PreviousNext
Help > Modbus Steps Reference > Standard Functions > Read Coils (F01)
Read Coils (F01)

This function is used to read from 1 to 2000 contiguous status of coils in a remote device. You can specify the starting address, i.e. the address of the first coil specified, and the number of coils. Coils are addressed starting at zero. Therefore coils numbered 1-16 are addressed as 0-15.

To configure this step open the Edit Step window from Sequence editor.

In the configuration dialog box, you can change the following settings:

·          Connection Name: connection used to communicate with the device.

·          Address: starting address of the coils to read.

·          Nb Coils: number of coils to read (1 to 2000 coils) from the starting address.

The state of the coils is stored in Step.Result.CoilsState as a Boolean array. Bit 0 is stored in the first element of the array. In the report, the status of the inputs is represented with string where the bit 0 is on left side.

Note  Please read Execution Trace and Steps Variables chapter to learn more about accessing configuration of this step and how to access data read.

 

See Also

Open/Close Functions

Custom Functions