User manual
IEC61131 User and Reference Manual
April 22, 2008
310
inimodem
Initialize modem
Description
The inimodem function block is used to initialize an internal modem or an external modem,
typically to set it to receive calls. Only one inimodem function block may be active on each
serial communication port at any one time.
enable
comX
initModemString
error
done
status
inimodem
Arguments
Inputs
Type
Description
enable
Boolean
Set to TRUE to send an initialization string once. Do
not set Enable from TRUE to FALSE until either done
or error output is TRUE.
comX
Integer
Communication port to send the initialization string.
Valid values are 1 to 4.
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.
Outputs
Type
Description
done
Boolean
TRUE when the enable input is TRUE and the
initialization is complete.
FALSE in all other cases.
error
Boolean
TRUE when the enable input is TRUE and an error
has occurred in the initialization. See the status
output for a list of possible error codes.
FALSE in all other cases.
status
Integer
Status of the initialization attempt. See the table
below for status code information.
See Also
dial