Download User Manual - Programming components - PUE 5
Transcript
1.3.5 Analogue output int set_analog_output(com_conf_st* config, float percent) Parameters: − config - pointer to the structure com_conf_st comprising communication parameters − percent – output value in per cents of the output range. Returned value – operation status: 0 - Done, status OK -1 – Device Timeout -2 – CRC error -3 – to short response -4 – Wrong frame beginning -5 – Port cannot be opened -6 – another thread (server) -7 – communication Timeout -8 - Buffer response_buffer not allocated -9 – other error (client) 1.3.6 1.3.6.1 Operations on I/O Read inputs int get_inputs(inputs_st* inputs, com_conf_st* config) Parameters: • inputs – pointer to an allocated array with inputs’ addresses (masks), • config – pointer to structure com_conf_st comprising communication parameters. Returned value – operation status: 0 - Done, status OK -1 – Device Timeout -2 – CRC error -3 – to short response -4 – Wrong frame beginning -5 – Port cannot be opened -6 – another thread (server) -7 – communication Timeout - 21 -