FB_CheckAllowedControllerMacAddr: Check If MAC Address Allowed by Controller
This function block checks whether a specified MAC address is within the range of MAC addresses allowed for the controller. The application only continues executing if the MAC address matches. Otherwise, the application stops and the controller goes to the HALT state and the system variable i_wLastApplicationError is updated appropriately.
Library name: PLCSystemBase
Namespace: PLCSystemBase
To see the general representation in IL or ST language, refer to the chapter Function and Function Block Representation.
The following table describes the input variables:
Input |
Type |
Comment |
---|---|---|
byAllowedMacAddress |
ARRAY[0...5] OF BYTE |
MAC address to check [aa.bb.cc.dd.ee.ff]: oi_byMACAddress[0] = aa o... oi_byMACAddress[5] = ff |
The following table describes the output variables:
Output |
Type |
Comment |
---|---|---|
xControllerMacAddressOk |
BOOL |
TRUE = indicates that the MAC address is allowed for this controller. |