Omron CX-PROGRAMMER V8.1 Operation Manual page 120

Function blocks/ structured text
Table of Contents

Advertisement

Procedures
Program Circuits That
Must Be Altered before
Generating a Function
Block Definition
Program Circuits That
Must Be Altered after
Generating a Function
Block Definition
In the following case, the program circuits must be altered before a function
block definition can be automatically generated.
Addresses Used Both as Bits and Words
The bit and word addresses will be registered as different variables. The pro-
gram can be altered in advance to avoid this.
Example: MOV(021) for W0 and SET for W0.02
Here, the instruction can be changed to specify a word instead of a bit. As
shown below, W0 is used both for MOV(021) and SETB(532), and the bit
number for SETB(532) is specified using &2.
In the following cases, operand specifications must be changed using array
settings after generating the function block definition.
Instructions with Multiword Operands, Some of Which Are Changed by
Another Instruction in the Program Circuits
Example: D0 Specified as the First Word for MOVL(498) and D1 Specified for
MOV(021)
Section 3-2
95

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac ws02-cxpc1-v8Sysmac cx-programmer 8.1

Table of Contents