Z4Sight_Modbus_ReadDiscreteInputs


Reads the discrete input data table in local memory for data received from a Modbus controller.

Syntax

C++
Python
 
def Z4Sight_Modbus_ReadDiscreteInputs(
	state: Z4Sight_State,
	/,
	*,
	inDeviceID: Z4SightSystemAndDeviceIdentifier | None = None,
	inInstanceName: str | None = None,
	inOffset: int = 0,
	inCount: int = 1
)
-> outValues: list[bool]

Parameters

Name Type Range Default Description
Input will be modified ioState Z4Sight_State
Input value inDeviceID Z4SightSystemAndDeviceIdentifier | None None Device identification.
Input value inInstanceName str | None None Instance name of a given Industrial Communication protocol set in the MILConfig utility.
Input value inOffset int 0 - 65535 0 Offset from which to start reading the data in the specified data table.
Input value inCount int 1 - 2000 1 Amount of the data to read.
Output value outValues list[bool] Received values.