Saia-Burgess
Controls Ltd.
Manual Modem PCDxx7 Serie│Doc. 26/793; Ed. E2│30.04.2005
Protocols
4
4-3
Enabling protocol
4.2
Enabling protocol
The protocols are enabled by the function “PROTOCOL_FC“, numbered FC900 in the
modem library. The FC number can be freely changed.
Description and possible values of the parameters
Parameter
Type
Description
ENABLE_PROTOCOL BOOL / IN
A rising edge will enable the protocol
DB_PROTOCOL
BLOCK_DB / IN The DB number containing the protocol pa-
rameters
DB_DRIVER
BLOCK_DB / IN The DB number of the modem Driver “DB_
MODEM“
PROTOCOL_ON
BOOL / OUT
Signal that the serial line has been reconfig-
ured with the desired protocol and it’s now
available.
ERROR
BOOL / OUT
Error happened during the initialization of the
protocol
STATUS
WORD / OUT
Indication on the error which happened, usu-
ally error are due to an incorrect value in the
parameter of the “DB_PROTOCOL“.
4.2.1 Function
When a rising edge is detected on the input
ENABLE_PROTOCOL
, the function will
initialize the serial COM port 1, with the selected protocol and parameters configured
in the PROTOCOL_DB. If the operation was completed successfully the output
PRO-
TOCOL_ON
is set to 1.
When the input
ENABLE_PROTOCOL
is going down to the 0 level, it doesn’t affect
the protocol configuration of the serial COM port 1, but the output signal
PROTO-
COL_ON
is reset.
The input
ENABLE_PROTOCOL
has to be used in conjunction of the connected
signal of the modem DRIVER If the connected signal of the Driver is 1, then you can
enable the protocol, if the connected signal is 0 then the signal
ENABLE_PROTO-
COL
should also be 0.
In some cases and this depends on the subscriber, you should wait a little bit be-
tween the signal connected of the modem Driver and to set the
ENABLE_PROTO-
COL
, because sometimes the other subscriber can take more time to get connected.