Rice Lake iRite IDE User Manual

Page 68

Advertising
background image

64

920i

Programming Reference

BusImageReal

BusImageReal is a data type to allow a user program to pass real data to and from a fieldbus.

Method Signature:
type BusImageReal is array[32] of real;

GetFBStatus

Returns the status word for the specified fieldbus. See the fieldbus Installation and Programming manual for a
description of the status word format.

Method Signature:
function GetFBStatus (fieldbus_no : Integer; scale_no : Integer; VAR status : Integer) :
SysCode;

Parameters:

[in]

fieldbus_no

Fieldbus number

[in]

scale_no

Scale number

[out]

status

Fieldbus status

SysCode values returned:

SysInvalidRequest
SysOK

The function completed successfully.

GetImage

For integer data, GetImage returns the content of the BusImage for the specified fieldbus.

Method Signature:
function GetImage (fieldbus_no : Integer; VAR data : BusImage) : SysCode;

Parameters:

[in]

fieldbus_no

Fieldbus number

[out]

BusImage

Bus image

SysCode values returned:

SysInvalidRequest
SysOK

The function completed successfully.

GetImageReal

For real data, GetImage returns the content of the BusImageReal for the specified fieldbus.

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

Parameters:

[in]

fieldbus_no

Fieldbus number

[out]

BusImageReal

Bus image

SysCode values returned:

SysInvalidRequest
SysOK

The function completed successfully.

SetImage

For integer data, SetImage sets the content of the BusImage for the specified fieldbus.

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

Parameters:

[in]

fieldbus_no

Fieldbus number

[in]

BusImage

Bus image

SysCode values returned:

SysInvalidRequest
SysOK

The function completed successfully.

Advertising
This manual is related to the following products: