Skip to main content
Skip table of contents

Zone Control

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.

ErrorID

UINT

0x0: All OK. Otherwise, please see PMC Reply Codes.

Ethernet Interface 

PMCRTN ZoneControl(int zoneID, ZONEOPERATION zoneOp)

Parameters

Name

Type

Description

zoneID

int

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; ACTIVATE_ZONE (1): activate the zone

Returns

Name

Type

Description

PMCRTN

PMCRTN enum

ALLOK (0): Command Accepted. Otherwise, please see Ethernet Reply Codes.

Conditions

Operating Conditions

Preconditions

  • Zone is defined successfully, not as an intersection zone

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

Zone control state diagram:

Please note that only Loading Zones can be deactivated/activated. This command does not apply to Intersection Zones.

 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.