Flag Variables
Video Tutorial
A Flag is a pre-defined memory location that indicates the real time operation, state, and vital information of the XEM CPU. These are designed to give the programmer quick access to important information and are extremely useful for ease of programming.
Each flag is defined with a descriptive tag name that begins with an underscore (“_”). The tag name is aliased to a memory address located in the %F, %K, and %L area.
Category | Function |
---|---|
System | Common functions of the CPU: Run status, errors, clock, scan. |
High Speed Link | Communication status/info of High Speed link comms (LS devices only) |
P2P (Peer to Peer) | Communication status/info of Serial and Ethernet comms (P2P 01, 02, 03 , 04) |
PID | 59 setup/status tags for each of the 16 PID loops. |
High Speed Counter | 36 setup/status tags for each of the 4 counter channels |
Positioning | 45 setup/status tags for each Position Axis (2 or 6 per XEM model) |
System flags provide useful information for programming. Some helpful tags are highlighted below:
-
Provides high pulse for first half of time interval and low pulse for last half of time interval:
-
Provides ON/OFF or toggles by scan:
-
Clock tags:
High speed link is for use between LS devices only. These tags provide detailed information for each link.
P2P provides detailed status of each Peer to Peer communications functions built into the XEM CPU.
-
P2P1 – Built in Serial Communications (Cnet). 32 blocks
-
P2P2 – Built in ModTCP communications (FEnet)- 32 blocks.
The XEM processor provides 16 pre-defined PID loops for configuration. The PID flags contain 59 tags for setup of these PID loops.
These flags provide detailed information for the 4 High Speed Counter channels built into the XEM CPU.
The XEM CPU provides pre-defined Pulse/Direction Position Axis configuration (2 axis or 6-axis depending on part number)
Each Axis provides 45 tags for setup and real time monitoring of the axis.
Search tip: right-click on Variable.
LP003-4