Download OPERATION MANUAL

Transcript
Section 3-2
Instance Specifications
3-2
3-2-1
Instance Specifications
Composition of an Instance
The following table lists the items that the user must set when registering an
instance.
Item
Instance Name
Description
Instance name
Language
Variable definitions
Function block instance areas
Name of the instance
The programming and variables are the same as in
the function block definition.
The ranges of addresses used by the variables
Comments
A comment can be entered for each instance.
This is the name of the instance.
• Instance names can be up to 30,000 characters long.
• Instance names cannot contain spaces or any of the following characters:
! “ # $ % & ‘ ( ) = - ~ ^ \ | ‘ @ { [ + ; * : } ] < , > . ? /
• Instance names cannot start with a number (0 to 9).
• Instance names cannot contain two underscore characters in a row.
There are no other restrictions.
The instance name is displayed above the instance in the diagram.
Instance name
Pulse_2sON_2sOFF
&20
CLOCK PULSE
EN
ENO
ON_TIME
&10
Function Block
Instance Areas
OFF_TIME
To use a function block, the system requires memory to store the instance’s
internal variables and I/O variables. These areas are known as the function
block instance areas and the user must specify the first addresses and sizes
of these areas. The first addresses and area sizes can be specified in 1-word
units.
When the CX-Programmer IEC compiles the function, it will output an error if
there are any instructions in the user program that access words in these
areas.
The default values are as follows:
FB instance area
Non-retained area
Retained area
Start address
W0
E0_20480 in last
EM Area bank
End
address
512
12,288
Applicable memory
areas
CIO, WR, HR, DM, EM
HR, DM, EM
57