User manual
IEC61131 User and Reference Manual
April 22, 2008
236
Inputs
Type
Description
dialType
Integer
The types of dialing used, tone or pulse.
0 = tone dialing
1 = pulse dialing
initModemString
Message
The initialization string to be sent to the modem. The
string must not be more than 32 characters long. The
function block automatically adds the "AT" and "DT" or
"DP" commands. These commands must not be
included in the string.
For example the initialization string &F0 S0=1 is
acceptable but he initialization string AT&F0 S0=1 is
not.
phoneNumber
Message
The phone number of the remote controller. The
function block automatically adds the "AT" and "DT" or
"DP" commands. These commands must not be
included in the string.
For example the phone number string 555-1212 is
acceptable but he initialization string AT&555-1212 is
not.
Outputs
Type
Description
done
Boolean
TRUE when the enable input is TRUE and the modem
connection to the remote modem is complete.
FALSE in all other cases.
error
Boolean
TRUE when the enable input is TRUE and an error has
occurred in the dial up. See the status output for a list of
possible error codes.
FALSE in all other cases.
status
Integer
Status of the dialup attempt. See the modem status
codes table below for status code information.
Modem Status Codes
Error Code
Description
0
No Error
1
Bad configuration error occurs when an incorrect initialization string is sent
to the modem. This usually means the modem does not understand a
specific command in the initialization string.
2
The controller serial port is not set to RS232 Modem.
3
Initialization error occurs when the modem does not respond to the
initialization string and may be turned off.
4
No dial tone error indicates modem is not connected to a telephone line or
the S6 setting in the modem is too short.
5
Busy line indicates another device is using the phone line.
6
Call aborted by the program. This will occur if the enable DIAL input goes
OFF before a modem connection occurs.
7
Failed to connect error occurs when there are no other errors but the
modem failed to make a connection with the remote modem.
8
Carrier lost error occurs when carrier is lost for a time exceeding the S10
setting in the modem. Phone lines with call waiting are very susceptible to
this condition.