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

isaWrite4AoutChecksum

Write to 4 Point Analog Output Module with Checksum

Syntax

#include <ctools.h>

UINT16 isaWrite4AoutChecksum(

UINT16 moduleAddress,

INT16 *dataArray

)

Description

The isaWrite4AoutChecksum function writes data to a 4-point analog output module with checksum support. The function can be used with 5304 analog output modules. Use the isaWrite4Aout function for all other analog output modules.

The function has two parameters.

 moduleAddress is the address of the module. The valid range is 0 to 15.

 dataArray needs to point to an array of four INT16 variables.

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

Notes

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

See Also

isaWrite2Aout, isaWrite4Aout, isaWrite5303Aout

Example

This program sets all 4 analog outputs to half scale on a 5304 Analog Output

Module at module at address 0.

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

{

INT16 dataArray[4];

/* set all output values to one-half scale */ dataArray[0] = 16384; dataArray[1] = 16384; dataArray[2] = 16384; dataArray[3] = 16384;

/* Write data to 5304 analog output module */ request_resource(IO_SYSTEM); isaWrite4AoutChecksum(0, dataArray);

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

}

IEC 61131-3 C Tools Function Specifications release_resource(IO_SYSTEM);

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

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

Download PDF

advertisement

Table of contents