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

isaWrite5303Aout

Write to 5303 Analog Outputs

Syntax

#include <ctools.h> unsigned isaWrite5303Aout(int *dataArray)

Description

The isaWrite5303Aout function writes data to the 2 points on a 5303

SCADAPack Analog Output Module. Data is read from the array pointed to by

dataArray and written to the 2 analog outputs. dataArray must point to an array of two 16-bit integers.

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

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

See Also

isaWrite2Aout, isaWrite2Aout

Example

This program sets both analog outputs to half scale on a 5303 Analog Output

Module.

}

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

{ int dataArray[2]; dataArray[0] = 16384; dataArray[1] = 16384;

/* Write data to analog output module */ request_resource(IO_SYSTEM); isaWrite5303Aout(dataArray); release_resource(IO_SYSTEM);

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

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