This function allows you to enable or disable a communication channel.
A channel managed by this function is reinitialized to its default value (enable) after a reset (cold/warm).
After a stop or after a start command, the channel remains disabled if it was disabled before. After a reset, the channel is enabled (default) even if it was disabled before.
To see the general representation in IL or ST language, refer to Function and Function Block Representation.
This table describes the input variables:
Input |
Type |
Comment |
---|---|---|
ChannelID |
UINT |
The channel number (visible in the first column of the configuration page). |
Enable |
BOOL |
Enables or disables command. |
This table describes the output variable:
Output |
Type |
Comment |
---|---|---|
IOS_CONTROLCHANNEL |
INT |
Returns 0 on success, a negative value on error. |