ADAM

ADAM 6050-D

Main ADAM module to make the requests for input and output operations

class adam_io.adam.Adam6050D(ip: str, username: str, password: str)[source]

Only the ADAM6050D module is supported.

input(digital_input_id: Optional[int] = None)[source]

Read the values of the digital inputs

Parameters

digital_input_id – DIx if the digital_input_id is None, read the all values

Returns

ADAM response

off()[source]

All digital outputs to LOW

on()[source]

All digital outputs to HIGH

output(digital_output: Optional[adam_io.digital_io.DigitalOutput] = None)[source]

This prepares the data and sends it over to ADAM.

Parameters

digital_output – DigitalOutput, if the digital_output is None, read the values, not set them.

Returns

True for success, raises an exception if unsuccessful