IEC 61131-3 C Tools User Manual


Add to my manuals
501 Pages

advertisement

IEC 61131-3 C Tools User Manual | Manualzz

IEC 61131-3 C Tools Function Specifications

isaWrite4202Outputs

Write to SCADAPack 4202 DR Analog Output

Syntax

#include <ctools.h> unsigned isaWrite4202Outputs( int aoutData

)

Description

The isaWrite4202Outputs function writes data to the analog output of the

SCADAPack 4202 DR I/O. aoutData is the analog output value.

The function returns FALSE if an I/O error occurs; otherwise TRUE is returned.

Notes

When this function writes data to the SCADAPack 4202 DS I/O it also processes the transmit buffer for the com3 serial port. The com3 serial port is also continuously processed automatically. The additional service to the com3 receiver caused by this function does not affect the normal automatic operation of com3.

The IO_SYSTEM resource needs to be requested before calling this function.

See Also

isaRead4202Inputs, isaWrite4202OutputsEx

Example

This program sets the analog output to full scale.

}

#include <ctools.h> void main(void)

{ int analogData;

/* set analog output to full scale */ analogData = 32767;

/* Write output data to 4202 DR output */ request_resource(IO_SYSTEM); isaWrite4202Outputs(analogData); release_resource(IO_SYSTEM);

Document (Version 2.50) 5/12/2011 309 309

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

advertisement

Table of contents