This command is used to activate or deactivate a zone. Zones based on the Flyway IDs are automatically created at start up, ie. Flyway 1 is Zone 1, Flyway 2 is Zone 2, etc. These default zones can be overwritten using the Define Zone command (or new zone IDs added).
Fieldbus Interface
PMC_Zone_ZoneCtrl
Inputs
Name
Data Type
Description
Execute
BOOL
Execution of the function block begins on a rising edge of this input.
ZoneID
USINT
Zone ID, same as Flyway ID by default, you may define your own Zones as well using Define Zone
Level
USINT
Control level: 0 = deactivate zone, 1 = activate zone
PM_Controller
PMControllerType
Data structure that specifies which PMC to connect to. There should be only 1 instance of this variable for each connected PMC.
Outputs
Name
Data Type
Description
Ack
BOOL
Command has been accepted by the PMC when Ack = TRUE.
Done
BOOL
Execution successful. Function block is finished. (Note: Done will not become TRUE if Execute is already FALSE)
Busy
BOOL
Function block is active and must continue to be called.
Aborted
BOOL
Command aborted by another command.
Error
BOOL
If there is an error in processing the command, then Error = TRUE, otherwise, FALSE.
Any ID from 1 to 255. Will overwrite the default zones created using Flyway IDs is the ID is a valid Flyway ID.
zoneOp
enum
DEACTIVATE_ZONE (0): Deactivate the zone, if successful, the zone is converted into a loading/unloading zone. Any XBots inside the zone will become deactivated
ACTIVATE_ZONE (1): Activate the zone, if successful, the zone is converted into a fenced active zone. Any XBots inside the zone will be levitated
ACTIVATE_DISCOVERY_ZONE (2): Activate the zone to discovery mode, if successful, the zone state enters "DISCOVER". Any XBots inside the zone will be levitated, in either discover or idle state
EXIT_DISCOVERY_ZONE (3): Exit discovery mode. Only works if the zone state is "DISCOVER" and all XBots inside have been scanned
No XBot(s) sitting on the boundary or crossing boundary
Zone is at LOADING state ready to load xbots
Postconditions
Zone state = LOADING: Zone is ready to load XBots after deactivation
Zone state = ACTIVE_UNFENCED: Zone is released (fence is turned off) after activation without XBots
Zone state = ACTIVE_FENCED: XBots are activated, but fence is still on
Description
This command is used to activate or deactivate a zone. Zones based on the Flyway IDs are automatically created at start up, ie. Flyway 1 is Zone 1, Flyway 2 is Zone 2, etc. These default zones can be overwritten using the Define Zone command (or new zone IDs added).