User manual
IEC61131 User and Reference Manual
April 22, 2008
317
masterip
Send Modbus IP Master Command
Description
The masterip function block exchanges data with another controller using a Modbus IP
communication protocol. This function block sends a master message to a remote IP
address. This function block is used by the SCADAPack 330, SCADAPack 350 and
SCADAPack 32 controller series only.
mAddress
length
timeOut
done
error
masterip
statusMasterCmd
functionCode
slaveStn
sAddress
enable
ipRemote
protocolType
sendCmd
Arguments
Inputs
Type
Description
Enable
Boolean
Set to TRUE to allocate an IP connection. Must be
set to TRUE when setting sendCmd to TRUE.
Set to FALSE to disconnect and give up connection
allocation.
SendCmd
Boolean
Set to TRUE to send one master message.
sendCmd must be set to FALSE and back to TRUE
to send another master message. Each master
message is complete when either the done or error
output is TRUE.
IpRemote
Message
Remote IP address to connect.
Format is 255.255.255.255.
protocolType
Integer
Protocol type is one of:
0 = None
1 = Modbus/TCP
2 = Modbus RTU over UDP
3 = Modbus ASCII over UDP
functionCode
Integer
Function code for the Modbus message. Valid
function codes are shown in the Modbus Function
Codes table below.