beautypg.com

Chapter 14: registers – Horner APG XL6 OCS User Manual

Page 85

background image

MAN0883-05-EN

CH.14

March 4, 2010

Page 85 of 135

#1037


CHAPTER 14: REGISTERS



14.1 Register

Definitions


When programming the XL6/XL6e OCS, data is stored in memory that is segmented into different types.
This memory in the controller is referred to as registers. Different groups of registers are defined as either
bits or words (16 bits). Multiple registers can usually be used to handle larger storage requirements. For
example 16 single bit registers can be used to store a Word or two 16 bit registers can be used to store a
32-bit value.

Below is a list of the type of registers found in the XL6/XL6M/XL6e OCS.

%AI Analog Input
16-bit input registers used to gather analog input data such as voltages, temperatures, and speed
settings coming from an attached device.

%AQ Analog Output
16-bit output registers used to send analog information such a voltages, levels or speed settings to an
attached device.

%AIG Global Analog Input
Specially defined 16-bit input registers that come from the network.

%AQG Global Analog Output
Specially defined 16-bit output registers that go to the network.

%D Display Bit
These are digital flags used to control the displaying of screens on a unit which has the ability to display a
screen. If the bit is SET, the screen is displayed.

%I Digital Input
Single-bit input registers. Typically, an external switch is connected to the registers.

%IG Global Digital Input
Specially defined single-bit inputs that come from the network.

%K Key Bit
Single-bit flags used to give the programmer direct access to any front panel keys appearing on a unit.

%M Retentive Bit
Retentive single-bit registers.

%Q Digital Output
Single-bit output registers. Typically, these bits are connected to an actuator, indicator light or other
physical outputs.

%QG Global Digital Output
Specially defined single-bit outputs that go to the network.

%R General Purpose Register
Retentive 16-bit registers.