User manual

IEC61131 User and Reference Manual
April 22, 2008
235
dial
Control dialup modem
Description
The dial function block connects an internal modem or an external modem to a remote
modem. Only one Control dialup modem function block may be active on each serial
communication port at any one time. The dial function block handles all port sharing and
multiple dialing attempts.
The dial-up connection handler prevents outgoing calls from using the serial port when an
incoming call is in progress and communication is active. If communication stops for more
than five minutes, then outgoing call requests are allowed to end the incoming call. This
prevents problems with the modem or the calling application from permanently disabling
outgoing calls.
Note: The SCADAPack 100 does not support dial up connections on com port 1.
The SCADASense series of controllers do not support dial up connections.
enable
comX
attempts
connectTime
pauseTime
dialType
dial
error
done
status
initModemString
phoneNumber
Arguments
Inputs
Type
Description
enable
Boolean
Set to TRUE to make a dialup connection. Set to
FALSE to disconnect the connection. Do not set enable
from TRUE to FALSE until either done output or error
output is TRUE.
comX
Integer
Communication port to dial out from.
Valid values are 1 to 4.
attempts
Integer
The number of times the controller will attempt to dial
the remote controller before giving up and reporting an
error.
connectTime
Integer
The length of time, in seconds, that the controller will
wait for carrier to be detected. This time is measured
from the start of the dial attempt.
pauseTime
Integer
The length of time, in seconds, that the controller will
wait between dial attempts.