8 analog output operations, 9 pulse input operations – Rice Lake iRite IDE User Manual

Page 69

Advertising
background image

920i

Programming Reference - API Reference

65

SetImageReal

For real data, SetImageReal sets the content of the BusImageReal for the specified fieldbus.

Method Signature:
function SetImage (fieldbus_no : Integer; data : BusImageReal) : SysCode;

Parameters:

[in]

fieldbus_no

Fieldbus number

[in]

BusImageReal

Bus image

SysCode values returned:

SysInvalidRequest
SysOK

The function completed successfully.

5.8

Analog Output Operations

SetAlgout

Sets the analog output card in slot S to the percentage P. Negative P values are set to zero; values greater than
100.0 are set to 100.0.

Method Signature:
function SetAlgout (S : Integer; P : Real) : SysCode;

Parameters:

[in]

S

Slot number

[in]

P

Analog output percentage value

SysCode values returned:

SysInvalidPort

The specified slot (

S

) is not a valid analog output.

SysInvalidRequest

The analog output is not configured from program control.

SysOK

The function completed successfully.

5.9

Pulse Input Operations

ClearPulseCount

Sets the pulse count of the pulse input card in slot S to zero.

Method Signature:
function ClearPulseCount (S : Integer) : SysCode;

Parameters:

[in]

S

Slot number

SysCode values returned:

SysInvalidCounter

The specified counter (

S

) is not a valid pulse input.

SysOK

The function completed successfully.

PulseCount

Sets C to the current pulse count of the pulse input card in slot S.

Method Signature:
function PulseCount (S : Integer; VAR C : Integer) : SysCode;

Parameters:

[in]

S

Slot number

[out]

C

Current pulse count

SysCode values returned:

SysInvalidCounter

The specified counter (

S

) is not a valid pulse input.

SysOK

The function completed successfully.

Advertising
This manual is related to the following products: