At Settings For Internal Variables; Array Settings For Input-Output Variables And Internal Variables - Omron WS02-CXPC1-V9 - V9 Operation Manual

Table of Contents

Advertisement

Function Block Applications Guidelines
External Variables:
Condition Flags, Clock
Pulses, Auxiliary Area
Bits, Global Symbols in
Program
Internal Variables:
Internally Allocated
Variables and Variables
Requiring AT Settings
2-5-3

AT Settings for Internal Variables

2-5-4

Array Settings for Input-Output Variables and Internal Variables

Using Array Variables
to Specify First or Last
Word in Multiword
Operands
Note
1,2,3...
Condition Flags (e.g., Always ON Flag, Equals Flag), Clock Pulses (e.g., 1.0
second clock pulse bit), pre-registered Auxiliary Area Bits (e.g., First Cycle
Flag), and global symbols used in the program are all external variables
defined by the system.
Variables that are not specified as Inputs, Outputs, In Out, or Externals are
Internals. Internal variables include variables with internally allocated
addresses and variables requiring addresses with AT settings (e.g., I/O alloca-
tion addresses, addresses specially allocated for Special I/O Units). Variables
requiring array settings include input-output variables and internal variables.
For details on conditions requiring AT settings or array settings, refer to 2-5-3
AT Settings for Internal Variables, and 2-5-4 Array Settings for Input-Output
Variables and Internal Variables.
Always specify AT settings for internal variables under the following condi-
tions.
• When addresses allocated to Basic I/O Units, Special I/O Units, or CPU
Bus Units are used and these addresses are registered to global symbols
that cannot be specified as external variables (e.g., data set for global
symbols is unstable).
Note The method for specifying Index Registers for Special I/O Unit allo-
cation addresses requires AT settings to be specified for the first
address of the allocation area. (For details, refer to 2-5-5 Specify-
ing Addresses Allocated to Special I/O Units.)
• When Auxiliary Area bits that are not pre-registered to external variables
are used, and these bits are registered to global symbols that are not
specified as external variables.
• When setting the first destination word at the remote node for SEND(090)
and the first source word at the local node for RECV(098).
• When the instruction operand specifies the first or last of multiple words,
and an array variable cannot be specified for the operand (e.g., the num-
ber of array elements cannot be specified).
When specifying the first or last of a range of words in an instruction operand
(see note), the instruction operates according to the address after AT specifi-
cation or internal allocation. (Therefore, the variable data type and number of
elements for the variable are unrelated to the operation of the instruction.) Al-
ways specify a variable with an AT setting or an array variable with a number
of elements that matches the data size to be processed by the instruction.
Some examples are the first source word or first destination word of the
XFER(070) (BLOCK TRANSFER) instruction, the first source word for
SEND(090), or control data for applicable instructions.
For details, refer to 2-6 Precautions for Instructions with Operands Specifying
the First or Last of Multiple Words. Use the following method to specify an array
variable.
When using input-output variables, set the input parameter to the first address
of multiple words.
Use the following procedure for internal variables.
1. Prepare an internal array variable with the required number of elements.
Section 2-5
59

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cx-programmer 9Sysmac ws02-cxpc1-v9

Table of Contents