Maple Systems Silver Series Installation And Operation Manual page 292

Operator interface terminal
Hide thumbs Also See for Silver Series:
Table of Contents

Advertisement

Mac ros
then press the PLC API button. This way, all variables will be available in a drop-down menu list within the 'PLC
API' dialog.
GetData() Func tion
This function reads data from a register location in the OIT or PLC memory, and stores it into a variable.
The format for the GetData() function is:
GetData(DestVariable, PLC Name, Addr_Type, Address, NumElements)
Parameter
DestVariable
PLC Name
Addr_Type
Address
NumElements
SetData() Func tion
SetData( DestData ,Addr_Type , Address , NumElements )
Description: Writes data from a variable to a location in the PLC memory.
Parameter
DestData
PLC Name
Addr_Type
Address
NumElements
The number of registers actually read from or written to depends on both the type of the DestData variable and the
value of Number of Elements. The Number of Elements refers to the number of elements of the DestData type, not
necessarily the number of registers.
Type of DestData
Float (32-bit)
Float (32-bit)
Int (32-bit)
Int (32-bit)
Short (16-bit)
Short (16-bit)
Description
The name of the variable to store the
data that is captured
The name assigned to the controller in
the device table
The device type and encoding method
(binary or BCD) of the PLC data.
The address offset in the PLC (must be
written as a constant whole number – no
decimals – no variables)
Number of elements to read/write (must
be at least 1 and it must be a constant
number) If the number of elements is
more than 1, the 'DestVariable'
parameter must be declared as an array.
Description
The name of the variable to retrieve the
data from
The Name assigned to the controller in
the device table
The device type and encoding method
(binary or BCD) of the PLC data
The address offset in the PLC
Number of words
Number of Elements
1
2
1
2
1
2
Example(s)
MyVar, InputArray[0]
"Local HMI", "Modbus RTU"
LW_Binplc, 4x_Binplc,
0x_Binaux, RW_Bcdplc
0, 100,
(an address that
has a decimal point is
written here without the
'.' So 1.03 is written as
103
1, 16, 100
Example(S)
"Local HMI", "Modbus RTU"
Actual Number of 16-bit
Registers Read/Written
2
4
2
4
1
2
287
1010-1007W, Rev 06

Advertisement

Table of Contents
loading

Related Products for Maple Systems Silver Series

This manual is also suitable for:

Hm15070thHm15100t

Table of Contents