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.
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).