beautypg.com

A.1 data types – Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 275

background image

AĆ3

A.1

Data Types

This section describes Boolean, integer, double integer, timer, and counter variables in

more detail.

A.1.1

Boolean Variables

A Boolean variable stores the status (either 1 or 0) of one bit. When a bit has a value of

1, it is said to be on and logically true. When a bit has a value of 0, it is said to be off

and logically false.
You can reference an individual bit using any of these methods:

Method

Example

simple Boolean

switch1

bitĆindexed integer or double integer

vat.15
vat.31
vat.fill

Boolean array element

panel[20]

bitĆindexed integer or double integer array

element

panel[rack2].15

timer and counter status bits

timer_name.Q
counter_name.QD

See section A.2 for more information.