Yaskawa CP-9200SH Programming Manual

'ÿi
MACHINE
CONTROLLER
PROGRAMMING
»i£
Wm
m
s:
-
<
mmm
CP-9200SH
MANUAL
1
'1
min
£
B
nit
i
msmsmm
r
YASKAWA
MANUAL
SIE-C879-40.3B
NO.
Introduction
Programming
This
essential
this
In
Listed
also.
manual,
below
preparing
for
are
Manual
"CP-717"
other
documents
the
refers
provides
software
Control
to
relevanttothe
descriptions
the
for
Machine
Pack
the
on
Controller
CP-717,
which
CP-9200SH.
programming
CP-9200SH.
of
is
one
Please
refer
language
peripheral
the
to
these
which
is
devices.
materials
Relevant
Document
Documents
No.
SIE-C873-16.4
SIE-C877-17.4 SIE-C877-17.5
TOE-C877-17.7
CHE-C879-40
KAE-C879-40 SIE-879-40.1
SIE-879-40.2
System
FDS Control
Control
Control
Pack Pack
Pack
CP-9200SH
CP-9200SH
Machine
Machine
Controller
Controller
Installation
CP-717 CP-717
CP-717
Brochure
Catalog
CP-9200SH
CP-9200SH
NameofDocument
Manual
Operation Operation
Instructions
Manual Manual
User's
Servo
(Vol.l) (Vol.2)
Manual
Controller
User’s
Manual
1
TABLE

CONTENTS

OF
1
INTRODUCTION
Programming
1.1
2
HIERARCHICAL
Types
2.1
Execution
2.2
2.2.1
2.2.2
2.3
Hierarchical
2.3.1
2.3.2
Functions
2.4
2.4.1
2.4.2
3
REGISTER
Register
3.1
3.2
Data
Types
3.3
3.3.1
3.3.2
3.3.3
3.3.4
3.3.5
3.3.6
Symbol
3.4
3.4.1
3.4.2
Upward
3.5
3.5.1
3.5.2
4
BASIC
4.1
4.2
INSTRUCTIONS
Instruction
Program
4.2.1
4.2.2
4.2.3
4.2.4
4.2.5
4.2.6
4.2.7
4.2.8
4.2.9
Direct
4.3
4.3.1
4.3.2
PROGRAMMING
TO.
Languages
STRUCTURE
and
Priority
Control
Execution
Scheduling
LevelsofParent
of
Control
of
Structure
Drawings
Execution Execution
of of
Process
2-6
Function User
Definition
Function
MANAGEMENT
Designation
Types
of
DWG
Function
CPU
Subscripts
(1) (2) (3)
(4)
(5)
Function
Programs
Symbol
Symbol
Upward
Automatic
Child
FOR
WHILE IF
(1)
(2)
Function
Function
Function
Comment
Expansion
I/O
3-3
Registers
Registers
Registers
Internal
and
i
When When
When
When
Example
Subscript
a
Subscript
a
a
Subscript
Subscript
a
I/O
and
Management
Management
Management
Linking
of
Linking
Register
]
[
with
Control
Instructions
Drawing
Structure
Structure
Structure
Structure
IF
Structure
IF
Referencing
Input
Output
Instruction
Program,
Instructions
Continuous
Continuous
of
and
Symbols
Statement
Execution
Execution
1-2
OF
Parent
the
Drawings
of
Parent
Execution
Drawings
of
Drawings
of
2-6
Preparation
METHOD
Method
3-5
3-5
3-6
Registers
j
3-7
is is is
is
Program
Function
Register
Referencing
3-10
in in
and
Symbols
of
Number
4-3
Referencing
Statement
Statement
Statement Statement
Instruction
Instruction
Instruction
(COMMENT)
Execution
4-17
THE
DRAWING
Drawings
Drawings
of
Scan
2-4
Procedure
3-2
3-6
Attached
Attached
Attached
Attached
Using
Registers
the
DWG's
the
Functions
Automatic
3-11
Allocation
"ÿ
.
4-4
Instruction
4-5
4-6
4-8
1
-
2
-
(FIN)
(FOUT)
Instruction
Type
Direct
Type
Direct
2-3
Process
2-4
2-5
to
Bit
Integer
to
Double-Length
to
Real
to
Subscript
a
3-8
Ranges
3-10
Number
4-8
4-9
(FSTART)
4-11
4-14
Input
Output
SYSTEM
2-2
2-3
Drawings
2-7
Type
Number
3-10
3-11
(SEE)
4-12
(XCALL)
Instruction
Instruction
.
Data
Type
Data
Type
3-7
3-9
Allocation
,
4-4
4-10
AND
PROGRAMS
2-3
3-7
3-7
Integer
Data
4-16
(INS)
(OUTS)
Type
3-11
3-7
'
4-17
Data
4-19
=
1-1
2-1
3-1
3-7
4-1
2
TABLE
OF
CONTENTS
4.4
4.5
4.6
4.7
4.8
4.9
Sequence
4.4.1
4.4.2
4.4.3
4.4.4
4.4.5
4.4.6
4.4.7
4.4.8
4.4.9
4.4.10
Logical
4.5.1
4.5.2
4.5.3
NO
NC
Coil Set
Rising
Falling
On-delay
Off-delay
On-delay
Off-delay
Operation
AND
OR XOR
Numerical
4.6.1
4.6.2
4.6.3
4.6.4
4.6.5
4.6.6
4.6.7
4.6.8
4.6.9
4.6.10
4.6.11
4.6.12
4.6.13
4.6.14
4.6.15
4.6.16
Integer
Real
Storage
Addition
Subtraction
Extended
Extended
Multiplication
Division
MOD
REM
INC
DEC
Time Time Time
Numerical
4.7.1
4.7.2
4.7.3
4.7.4
4.7.5
4.7.6
4.7.7
4.7.8
4.7.9
Number
4.8.1
4.8.2
Data
4.9.1
4.9.2
4.9.3
4.9.4
4.9.5
4.9.6
4.9.7
4.9.8
4.9.9
4.9.10
4.9.11
4.9.12
INV
COM
ABS
BIN
BCD
PARITY
ASCII BINASC
ASCBIN
Comparison
Range
Operation
ROTL
MOVB
MOVW
XCHG SETW
BEXTD
BPRESS BSRCH
SORT
SHFTL
COPYW
BSWAP
Circuit
Instructions
Contact
Contact
Instruction
/
Reset
Coil
Pulse
Pulse
Timer
Timer
Timer
Timer
Instructions
Instruction
Instruction
Instruction
Operation
Type
Number
Instruction
Instruction
Addition
Subtraction
Instruction
Instruction
Instruction
Instruction
Instruction
Add
Instruction
Subtraction
Spend
Conversion
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Comparison
Check
Instructions
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Coil
Instruction
Instruction
Instruction:
Instruction:
Instruction:
Instruction:
4-34
4-35
4-35
Instructions
Entry
Instruction
Entry
Type
(
(
Instruction
Instruction
Instruction
4-45
4-45
4-46
4-47
Instruction
Instruction
Instructions
4-52
4-53
4-53
4-54
4-54
4-55
Instructions
Instructions
Instruction
and
4-63
4-66 4-67
4-71
and
4-20
(
—I!—
(
\A
o
(
(
~f~
(
f—
Unit
Unit
Unit Unit
4-34
4-36
Instruction
)
=>
4-38
)
+
(
Instruction
(
v-
(
(TMADD)
)
(TMSUB)
(SPEND)
4-52
4-55
4-56
4-57
4-58
4-58
(RCHK)
4-62
ROTR
4-65
Instruction
4-68
4-69
4-70
SHFTR
4-73
4-74
)
4-20
)
4-21
4-21
i)
[S}H,
(
)
4-23
)
4-24
of
measurement=0.01
of
measurement=0.01
of
measurements
of
measurements
h
++
(
)
4-48
)
(
)
--
4-43
4-41
4-39
)
4-40
(
X
4-44
(
4-50
4-60
Instruction
-JRH)
4-36
)
||-
)
4-42
4-49
4-62
4-72
4-22
seconds
seconds
seconds seconds
4-37
(-P
(i (f
H
Y)
T-
}
s}
)
)
)
4-25
4-27
4-29
4-31
3
4.10
4.11
4.12
Basic
4.10.1
4.10.2
4.10.3
4.10.4
4.10.5
4.10.6
4.10.7
4.10.8
4.10.9
4.10.10
Instructions
DDC
4.11.1
4.11.2
4.11.3
4.11.4
4.11.5
4.11.6
4.11.7
4.11.8
4.11.9
4.11.10
4.11.11
4.11.12
4.11.13
Table
4.12.1
4.12.2
4.12.3
4.12.4
4.12.5
4.12.6
4.12.7
4.12.8
4.12.9
Function
SQRT
SIN
COS
TAN
ASIN
ACOS
ATAN.
EXP LN
Instruction
LOG
DZA
DZB
LIMIT
PI
Instruction
Instruction
PD
Instruction
PID
LAG
LLAG FGN
IFGN
LAU
SLAU
PWM
Operation
Data
Block
Block
Row
Column
Block Inter
Cue
Cue
Pointer
Cue
Instructions
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
4-81
Instruction Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Instruction
Read
Instruction
Instruction
Write
Search
Instruction:
Search
Clear
Instruction
Block
Table
Table
Read
Table
Write
Clear
4-75
4-75
4-76
4-77
4-78
'4-78
4-78 4-79
4-80
4-80
4-80
.
4-81
4-82
4-84
4-86
4-88
.4-90
4-93
4-94
4-96
4-98
4-100
4-103
4-107
Instructions
Instruction:
Transfer
Instruction
Instruction
Instruction
4-108
(TBLBR)
(TBLBW)
Vertical
Horizontal
(TBLCL)
Instruction
(QTBLR,
(QTBLW,
(QTBLCL)
4-108
4-109
Direction
Direction
4-112
(TBLMV)
QTBLRI)
QTBLWI)
(TBLSRL)
(TBLSRC)
4-114
4-116
4-110
4-111
4-113
4-115
SFC
5
PROGRAMMING
Configuration
5.1
Execution
5.2
System
SFC
5.3
5.4
5.5
5.6
5.7
5.8
5.9
Flowchart
SFC
Action
SFC
Output
SFC
Step
Name
Taking
Precautions
5.9.1
5.9.2
5.9.3
5.9.4
5.9.5
of
of
SFC
Operation
Box
Definition
Designation
System
Out
upon
Restrictions Restriction
Converging
Restriction
Restrictions
(1)
Restrictions
(2)
Restrictions
(3)
Restrictions
(4)
Restrictions
Restrictions
Program
SFC
an
5-2
Registers
5-4
5-5
Time
Method
Step
Nos.
Preparation
concerning
concerning
Connections
the
of
concerning
concerning
5-3
Chart
5-7
5-7
of
an
Branching
Branching
in
Number
Subroutines
concerning
concerning concerning
concerning
Step
5-2
5-6
SFC
Program
and
and
a
Multi-Token
of
Branches
Nesting
Jumping Branching
the
Timer
Names
5-8
Converging
Structure
a
in
Multi-Token
5-13
(Depth
of
5-15
5-16
Transition
5-18
.
Connections
Macro)
Condition
5-11
Structure
5-14
5-9
5-12
Instruction
5-1
5-17
4
TABLE
CONTENTS
OF
6
TABLE
Types
6.1
Execution
6.2
6.3
Constant
6.3.1
6.3.2
6.4
Constant
6.4.1
6.4.2
I/O
6.5
6.5.1
6.5.2
Interlock
6.6
6.6.1
6.6.2
Part
6.7
6.7.1
6.7.2
6.7.3
Constant
6.8
6.8.1
6.8.2
FORMAT
of
Table
of
Table
Outline
Preparing
(1)
Defining
(2)
Inputs
Table
Outline
Preparing
(1)
Defining
(2)
Inputs
Conversion
Outline
Preparing
(1)
Scale
(2)
Bit
Table
Outline
Preparing
Composition
Outline
Preparing
Preparing
Table
Outline
Preparing
(1)
Defining
(2)
Inputs
PROGRAMMING
Format
Register)
the
Constant
the
Constant
the
into
the
Register)
the
Constant
the
Constant
the
the
into
the
I/O
the
I/O
Conversion
6-12
the
Interlock
the
Interlock
Table
the
Part
the
Part
the
Function
Register)
the
Constant
the
Constant
the
into
the
Programs
Programs
Constant
Constant
Constant
Constant
6-8
Conversion
Conversion
Function
6-14
Composition Composition
Constant
Constant
Format
Table
(M
of
(#
of
Table
of
Conversion
Signal
of
of
(C
of
6-2
6-4
(M
Table
(M
Table
Table
Table
6-6
(#
Table
(#
Table
Table
Table
Table
Table
Table
Table Table
Program
6-17
(C
Table
(C
Table
Table
Table
6-3
Register) Register)
(M
Register)
(M
Register)
Register)
Register)
(#
Register)
(#
Register)
6-8
6-9
6-9
6-10
6-12
6-13
Table
Table
for
Parts
Register)
Register)
(C
Register)
(C
Register)
6-14
6-15
6-4 6-5
6-6
6-7
6-16
6-17
6-18
6-5
6-7
6-18
:
6-5
6-7
6-18
6-1
:(
STANDARD
Data
7.1
7.1.1
7.1.2
Trace
7.2
7.3
Failure
7.3.1
7.3.2
7.3.3
7.3.4
Inverter
7.4
7.4.1
7.4.2
SYSTEM
Trace
Readout
Configuration
(1)
(2)
(3)
Function
Data Readout
(1)
(2)
(3)
(4)
Data
Readout
(1) (2)
(3)
FUNCTIONS
Read
Function
Data
of
Configuration
Data
Record Number
Trace
Length
of
(TRACE)
Read
Readout
Data
Configuration
Data
Record
Configuration
Structure
NumberofRecords
Readout
Data
Configuration
Data Record
Number
Trace
Configuration
of
Read
ReadoutofInverter
Readout
(1)
(2)
(3)
Data
Data
Configuration
Record
Number
Length
of
(DTRC-RD)
7-3
the
Read
of
7-4
Records
7-5
Function
(Failure Configuration
of
(Failure
Configuration
Records
Function
Configuration
Records
(FTRC-RD)
Occurrence
Register
Restoration
(ITRC-RD)
Trace
7-10
7-2
Data
7-4
7-4
7-7
7-4
7-6
Data)
(Failure
7-7
Designation
7-7
Data)
(Failure
7-8
7-8
7-8
Data
7-10
7-10
7-10
7-10
7-7
Occurrence
words)
(2
No.
7-8
Restoration
7-9
Data)
Data)
7-1
7-7
7-7
7-8
5
:
7.5
7.6
7.7
7.8
7.9
Inverter
7.5.1
7.5.2
Inverter
CP-213
Send
7.8.1
Constant
Configuration
Method
(1) (2)
Constant
Initial
Message
Parameters
(1)
(2) (3)
(4)
(5)
(6) (7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
Inputs
7.8.2
(1) (2)
(3)
(4)
(5)
(6)
(7)
Outputs
7.8.3
(1) (2)
(3)
7.8.4
Limitations
Communications
(1)
(2)
Program
7.8.5
Receive
7.9.1
Message
Parameters
(1) (2)
(3)
(4)
(5)
(6) (7)
.
(8)
(9)
(10) (11)
(12)
(13) (14)
Write
of
Writing
WRITE
Program
ENTER
Example
Read
Data
Function
Process
Status
Called
Function
Data
Data
Called Coil
Input
Input
Holding
For
Result
(PARM01)
Station
Code
Address
Size
CPU
Offset
Relay Register
Register
System
Relationship
When
Transmission
7-25
EXECUTE
ABORT
(Send
DEV-TYP
PRO-TYP
CIR-NO
CH-NO
PARAM
BUSY
(Circuit
(Channel
(Set
7-26
(In
COMPLETE
ERROR
When
(Occurrence
Arising
Making
Connection
Making
When
Example
Function
7-30
Process
Status
Calling
Function
Data
Data
Calling
Coil
Input
.
Input
Holding
Write-in
For
When
Result
(PARAM01)
Station
Code
Address
Size
CPU
Offset
Relay
Register
Register
Range
System
Non-procedural
Function
of
the
Write-in
an
to
EEPROM
Command
7-14
Function
Setting
Function
(MSG-SND)
7-20
(PARAM00)
7-21
#(PARAM02)
(PARAM04)
(PARAM05)
(PARAM06)
#(PARAM07)
(PARAM08)
Offset
(PARAM09)
Offset
Offset
(PARAM12)
Use
between
Protocol
(Send
Message
Message
(Transmission
(Transmission
No.)
No.)
Head
Data
Process)
7-26
(Completion
of
from
Other
Protocols
Dedicated
a
with
Link
OMRON
an
7-28
(MSG-RCV)
(PARAM00)
7-31
(PARAM02)
#
(PARAM04)
(PARAM05)
(PARAM06)
(PARAM07)
#
(PARAM08)
Offset
Use
(PARAM09)
Offset
Offset
(PARAM12),
LO
(PARAM14)
(ICNS-WR)
Data
7-13
(ICNS-RD)
(ISET-213)
7-19
7-20
7-22
7-22
7-23
7-23
7-24
7-24
(PARAM10)
(PARAMll)
7-24
Data
the
is
Execution
Forced
Interruption
Device
Protocol)
7-25
7-25
Address)
Process)
of
Error)
Companies'
the
with
Protocol
MELSEC
the
Upward
7-29
7-30
7-31
7-31
7-31
7-31
7-31
(PARAM
(PARAMll)
is
set
10)
7-32
for
7-11
7-12
7-13
7-16
7-18
7-24
7-24
7-24
Address,
set
Type)
Size
to
Non-procedural
Command)
7-25
7-25
7-25
7-26
7-26
CP-217IF
computer
Linking
7-31
7-27
Mode
7-31
7-32
7-32
Write-in
Range
Transmission
Offset
and
7-25
Command)
7-27
(SYSWAY)
(PARAM13)
HI
Protocol
1
7-24
7-24
7-25
Connection
7-32
7-27
7-32
6
TABLE
OF
CONTENTS
7.10
7.11
Appendix
Types
A
B
ListofInstructions
C
Differences
Inputs
7.9.2
(1) (2) (3) (4) (5) (6)
(7)
7.9.3
Outputs
(1)
(2)
(3)
Limitations
7.9.4
Communications
(1)
(2)
7.9.5
‘Program
Counter
First-in
Function
First-out
Instruction
of
7-32
EXECUTE
ABORT
(Receive
DEV-TYP
PRO-TYP
CIR-NO
CH-NO
PARAM
BUSY
(Circuit
(Channel
(Set
7-33
an
COMPLETE ERROR
When
(Occurrence
Arising
Making
Connection
Making
When
Example
(COUNTER)
Function
Words
A-3
Programming
on
(Receive
(Transmission
(Transmission
Data
Process)
(Completion
Message
Message
No.)
No.)
Head
7-33
of
from
Other
Protocols
Dedicated
a
with
Link
an
OMRON
7-35
(FINFOUT)
A-2
between
Forced
Device
Protocol)
7-33
7-33
Address)
Process)
of
Error)
Companies'
the
with
Protocol
the
MELSEC
Upward
7-36
CP-9200H
Execution
Interruption
Type)
7-33
7-33
7-33
CP-217IF
Computer
Linking
7-37
and
Command)
Command)
7-32
.
>.
7-33
7-34
(SYSWAY)
Mode
CP-9200SH
7-34
7-32
Connection
16
A-
7-32
7-34
A-l
7
1.
INTRODUCTION
PROGRAMMING
TO
INTRODUCTION
1
PROGRAMMING
programming
The
CP-9200SH
with
are
languages
described
TO
that
in
can
this
used
be
chapter.
1-1
1.1
Programming
Languages
CP-9200SH
prepared
refer
using
the
to
Programming
Ladder
Table
SFC
chart)
program
format
(sequential
program
support
the
Control
Language
program
programming
the
programming
Pack
CP-9200SH
Table
1.1
function
languages
language
User's
Programming
Programs
text
and
operation
Sequential
processes,
Programs
in
use
form)
and
(fill
Tables,
*
table,
Sequential
the
Sequences,
written
shown
that
is
Manual
Languages
prepared
are
type
instructions
instructions,
processes,
various
and
for
specific
with
such
of
the
as
part
composition
programs
steps
such
readily.
in
Table
optimal
(SIE-C879-40.1).
that
for
can
Characteristics
using
(control
etc.)
numerical
other
applications
of
use
the
constant
table,
prepared
are
and
transition
automatic
as
1.1.
application.
the
be
Used
relay
instructions,
operation
programs
tables.
setting
data
are
conditions.
operation
User
programs
circuit
can
prepared
are
table,
available.
flowchart
in
For
instructions
numerical
processes,
be
written.
in
interlock
form
flows,
can
be
can
details,
data
FIF
by
be
1-2
HIERARCHICAL
2.
STRUCTURE
OF
THE
DRAWING
SYSTEM
PROGRAMS
AND
HIERARCHICAL
o
DRAWING
Drawings,
and
definition
their
which
hierarchical
methods
SYSTEM
basic
the
are
described
are
STRUCTURE
AND
PROGRAMS
programming
in
and
this
chapter.
structure
THE
OF
units,
function
2-1
User
programs
(DWG
There
drawings.
each
No.).
are
drawing.
These
parent
Besides
managed
are
drawings
drawings,
drawings,
in
serve
child
units
as
drawings,
there
of
the
are
drawings,
basis
grandchild
also
functions,
of
which
user
drawings,
are
programs.
which
identified
and
operation
be
can
referenced
by
the
error
drawing
processing
freely
No.
from
2.1
Parent
The
Drawings
parent
Execution"
Drawings
Child
Child
drawings
Instruction.
Grandchild
Grandchild
Instruction.
Operation
This
executed
is
Functions
Functions
by
Types
Parent
the
as
C879-40.1).
FSTART
the
drawings
purpose
shown
and
in
drawing
of
Table
are
Drawings
drawings
Error
automatically
executed
are
Instruction.
Priority
of
the
Table
.
executed
is
established.
is
2.1
executed
executed
are
Processing
upon
Levels
are
classified
For
The
details,
process.
2.1.
automatically
being
upon
upon
Drawing
by
the
being
referenced
of
Parent
by
the
priority
refer
referenced
being
system
first
character
levels
the
to
the
system
by
referenced
program
from
the
Drawings
of
execution
and
Control
from
from
upon
parent,
the
conditions
Pack
parent
child
a
child,
when
or
(A,
program
the
occurrence
drawing
of
CP-9200SH
the
drawing
drawing
operation
of
grandchild
L)
I,
H,
drawings
User's
Manual
"Condition
by
by
according
are
SEE
the
SEE
the
error.
drawing
defined
(SIE-
of
to
(Note)
Type
of
Parent
Drawing
DWG.
DWG.
DWG.
DWG.
:
The Parent
Operation
Child
Grand
Starting
A
process
Interruption
I
process
High-speed
H
scan
Low-speed
L
scan
details
drawing
drawings
child
Table
Role
of
Drawing
process
process
the
of
processing
error
drawings
Types
2.1
Priority
Level
number
and
1
2
3
4
drawings
of
drawing
n:
*
AA
Priority
LevelsofParent
Condition
Turning
when
Start
rising
Start
high-speed
Start
low-speed
:
:
the
:
first
:
the
of
of
of
of
as
is
(ÿ)
1
(ÿ
00)
1
(ÿ
2
(A,
maximum
character
drawing
child
on
interruption
interruption
fixed
fixed
the
power
cycle
scan
cycle
scan
follows.
01
to
62,
L:
of
power
is
turned
(Executed
time.)
(Executed
time.)
'
99)
H,
number
the
of
number
Drawings
Execution
(Executed
on.)
(Executed
signal.)
input
maximum
A
grandchild
and
98)
L:
of
drawings
drawing
on
on
(A,
once
upon
each
each
I,
Number
Drawings
total
drawings.
that
can
L)
H,
(Note)
100
100
of
n-2
64
64
be
of
child
used.
2-2
2.
HIERARCHICAL
STRUCTURE
OF
THE
DRAWING
SYSTEM
AND
PROGRAMS
2.2
2.2.1
Execution
Execution
drawing
Each
each
On
speed
Batch
I
Batch
DWG.H
High-speed
[
DWG.A
high-
scan
output
input
rawing
f
Control
Control
is
Power
Starting
Drawing
time
Scan
of
of
Parent
executed
ON
Process
On
speed
|
1
[
|
DWG.L
Prrv'
Fig.
Parent
Drawings
based
each
scan
output
Batch
input
Batch
Low-speed
TYrawi
SR
Execution
2.1
Drawings
priority
its
on
low-
time
Scan
1
Control
level
as
Operation
DWG.X00
Operation
Processing
continue
original
Parent
of
shown
Error
Error
Drawing
X:
I
with
process
Drawings
Fig.
in
A,I,H,
2.1.
Interruption
DWG.I
L
Interruption
Drawing
continue
original
Signal
with
process
2.2.2
Scheduling
The
levelsasshown
DWG.H
DWG.L
Ground
*
process
scan
High-speed
scan
I-
-
of
the
Execution
drawings
Fig.
in
_1
of
not
are
and
2.2
-
High-speed
Low-speed
scan
mm
executing
For
:
*
Scan
executed
are
executed
Process
simultaneously
on
scan
High-speed
scan
mmm
internal
Drawings
the
schedule.
-
processes
but
High-speed
scan
scheduled
are
—3
iiaa
(self-diagnosis,
based
etc.)
on
Mi:in
of
the
priority
I
execution
system.
1
Fig.
Scheduling
2.2
of
the
Execution
of
Scan
Process
Drawings
2-3
2.3
Hierarchical
Structure
Drawings
of
2.3.1
The
However,
drawing
referenced referenced.
drawings.
Execution
The
drawing
[Parent
DWGJt
I
drawings
a
cannot
of
prepares
user
hierarchy
Drawing]
[
are
parent
from
This
Drawings
arranged
drawing
reference
parent
the
structure
processing
each
shown
as
DWGJffll
the
in
cannot
grandchild
a
drawing,
is
in
[Child
manner
reference
always
program
Fig.
2.3.
Drawing]
j-
parent
drawing
and
from
followed,
with
drawing
child
a
that
and
a
parent
of
drawing
a
different
child
is
called
child
-
drawing
drawing
[Grandchild
Referencing
function
drawing
-|DWGJffll.01
DwaxoLce
DWGJCOLUP
drawing-grandchild
ofadifferent
The
type.
the
the
hierarchical
child
-
Drawing]
of
by
a
grandchild
child
grandchild
drawing
a
|~
I-
j-
drawing.
type
a
child
and
drawing
drawing
structure
grandchild
-
is
is
of
[Function]
IFUNC-OOI
I
The
parent
priority
and
type.
In
other
system.
the
DWG
a
reference
Functions
referenced
operation
a
If
will
be
started.
drawing
parent
of
words,
Thus,
listed
by
a
error
]
executed
is
drawings,"
the
the
customer
instruction
may
2.2
in
function.
occurs,
DWG-Xnn
2.3
Fig.
parent
(SEE
be
operation
}
Hierarchical
automatically
criteria
drawing
can
referenced
is
execute
instruction)
from
error
Referencing
drawing
child
Referencing
parent
of
of
drawing
(Note)
StructureofDWG's
by
for
automatically
any
processing
system,
the
execution
child
or
the
in
all
parent
drawings.
drawings
are
called
grandchild
function
a
a
function
Substitute
from
since
determined
(called
drawing
child
or
Furthermore,
corresponding
by
a
by
a
I,
A,
H,
Table
2.1
separately
up
and
by
drawings.
a
function
FUNC-064
1
L
of
2.1
each
X.
in
"Types
for
can
screen
each
or
executed)
programming
to
[
by
be
2-4
2.
HIERARCHICAL
STRUCTURE
OF
THE
DRAWING
SYSTEM
AND
PROGRAMS
2.3.2
Execution
The
execution
whereby
Taking
Fig.
2.4.
Start
up
execution
I
Parent
DWG.A
A01
SEE
Process
process
lower-ranking
example
an
system
when
conditions
Drawing
of
Drawings
of
drawings
of
DWG.
program
satisfied
are
Child
drawings
the
A,
DWGJMI
SEE
SEE
referenced
are
the
hierarchical
Drawing
A01.01
A01.02
arranged
hierarchy
a
in
by
upper-ranking
structure
Grandchild
DWGAQ1.01
FUNC-001
DEND
DWGA01.02
FUNC-001
is
of
DWGs
Drawing
k-
carried
drawings.
(drawings)
in
out
is
Function
FUNC-001
PEND
manner
a
shown
in
SEEAQ2
DEND
DWG
<ÿ
expression
:
DWG.
DWG.
PEND
DWGAQ2
Occurrence
operation
error
PEND
AA
.
OO
TTT
00
T
Fig.
2.4
System
automatically
activates
of
a
<
Grandchild
drawing
Child
Type
of
Operation
Drawing
PEND
DEND
drawing
no.
parent
Execution
drawing
error
DWG.A00
no.(01to99)
(01to99)
(A,
drawing
Process
(A,
L)
I,
H,
L)
I,
H,
2-5
2.4

Functions

2.4.1
Functions
simultaneously
.
also
can
become
It
The
function
A
data
that
depicts
be
can
user
Standard
The
to
classified
functions,
user
modify
(program).
functions.
User
Functions
These
are
function
Preparation
Function
Functions
expression
can
reference
easy
program
composed
is
input
are
the
processes
System
freely
can
the
contents
Refer
functions
definition
Procedures"
Definition
defined
are
form
freely
be
from
other
to
can
into
which
Functions
use
to
Chapter
that
and
for
functions
referenced
drawings
arrangeaprogram
be
of
into
that
standard
are
a
of
the
of
functions.
prepared
the
function
output
and
are
to
system
defined
function
function.
that
"Standard
7
defined
are
main
different
The
and
be
by
that
body
concerning
the
user
by
at
shown
any
from
types
following
parts.
into
maintained
definition,
from
a
function,
executed
according
functions,
the
user.
been
has
other
In
(programmed)
(program)
the
the
Fig.
in
words,
System
preparation
time
of
2.5.
drawing.
and
different
benefits
easily.
which
determines
and
to
which
are
predefined
the
Functions"
freely
of
the
methods.
user
function
Functions
hierarchies.
the
inputs
the
made
by
the
cannot
for
the
obtained
main
available
system,
more
user.
can.be
user
by
function.
preparation
can
even
the
number
body
and
but
freely
information
The
See
2.4.2
be
Further,
by
using
and
(program),
outputs.
by
the
is
not
create
user
prepares
"User
using
referenced
functions
functions.
types
which
Functions
system,
and
permitted
definitions
system
on
Function
graphic
the
of
the
Numerical
(integer,
integer,
Numerical
(integer,
integer,
(Note):
The
or
ifiput
Bit
input
Bit
input
double-length
number)
real
input
double-length
number)
real
names
less
of
alphanumeric
-
-
the
Fig.
INPUT-
INPUT-2
INPUT-3
===<
INPUT-4
ss=7
function,
characters.
Graphic
2.5
Name
-
1
Address
the
FUNC-011
of
Function
OUTPUT-1
OUTPUT-2
OUTPUT-3
OUTPUT-4
INPUT-5
input
inputs,
and
Expression
the
of
-
-
===*
ts!*>
outputs
Function
a
Bit
output
output
Bit
Numerical
(integer,
integer,
real
Numerical
(integer,
integer,
are
real
respectively
output
double
-length
number)
output
double-length
number)
expressed
in
8
2-6
HIERARCHICAL
2.
STRUCTURE
OF
THE
DRAWING
SYSTEM
PROGRAMS
AND
\
Function
User
Fig.
user.
2.6
shows
Determination
I/O
the
Preparation
the
function
Programming
the
Programming
referencing
Preparation
procedure
the
specifications
of
definition
v
\
f
of
program
body
the
function
Procedure
of
of
function
preparing
for
Determine
is
Input
Prepare
types
made
registers
of
DWG's.Becareful
numbers
output
Input
A
upon
in
Input
Instruction.
B
Use
the
data.
Use
C
the
output
user
the
the
in
used
referencing
following
the
the
FIN
FOUT
data.
functions,
number
using
the
same
manner
used
of
the
function
the
in
procedures:
name
of
Instruction
Instruction
which
of
I/Os
can
and
CP-717.
the
as
differ
will
from
correspondence
program
function.
the
the
function
prepare
to
to
prepare
defined
be
the
data
DWGs.
those
the
and
with
program
the
freely
types.
However,
with
used
register
the
of
the
data
FSTART
the
for
program
by
the
the the
input/
input
for
*
on
I/O
definition
system
a
:
If
specifications,
already
defined
For
more
(SIE-C877-17.4,
provided
or
details
function
in
the
by
prepared.
Fig.
operating
on
-17.5).
be
is
to
Chapter
function
the
system
2.6
used,
7
definition,
User
CP-717,
the
prepare
the
"STANDARD
and
in
the
case
Function
Preparation
refer
to
program
SYSTEM
the
main
system
of
the
body
functions,
Control
referring
upon
FUNCTIONS".
the
of
function
these
Procedure
Pack
CP-717
description
the
to
Since
program
do
havetobe
not
Operation
the
I/O
are
Manual
2-7
3.
REGISTER
MANAGEMENT
METHOD
1
o
REGISTER
O
METHOD
Various
to
designation
types
application
registers
of
and
methods
MANAGEMENT
introduced
are
register
the
describedinthis
are
attributes
according
and
chapter.
3-1
r
\
3.1
Register
showninTable
As
symbolic
These When No.
Refer
Direct No.
Symbolic
designation
designation.
two
symbolic
be
must
the
to
Type
Designation
register
designation
Designation
3.1,
register
of
types
designation
defined
Control
of
in
Pack
Bit
Integer
Double-length
Real
Address
:
Bit
Integer
Double-length
Real Address
:
Method
registers
designation
is
to
symbol
the
CP-9200SH
Table
register
type
type
number
type
case
the
In
the
after
register
type
type
number
type
the
In
or
with
case
j,
are
characters
8
may
be
used,
be
table
Register
3.1
designation
register
integer
type
register
subscript
of
register
designation
register
integer
type
register
subscript
of
attached
designated
methods
relationship
the
described
User's
register
register
Manual
Designation
Designation
designation
type
designation
No.
designation
type
designation
after
less.
or
by
direct
may
be
used
between
later.
(SIE-C879-40.1)
register
designation
designation,
register
designation
designation,
the
designation
designation
alphanumeric
register
together
Methods
Method
subscript
the
An
a
designationorby
No.
the
in
symbol
the
details.
for
MB00100AD
MW001000
:
ML00100Q
:
MF00100D
:
MA00100D
or
i
RESET
: :
STIME-H.D
:
POS-REF.D
IN-DEF.D
PID-DATA.D
alphanumeric
characters
8
then
and
expression
the
user
and
j
is
1
-A.
i
expression
or
subscript,
the
of
programs.
register
the
attached
U
less.
symbol
of
i
Direct
Register
Symbolic
Symbol
Register
No.:
Designation
[Symbol
:
Designation
No.
V
T
-
TVpe
DWG
Function
Name]
No.
-*
[Bit
Data
register
of
[.]
*-*ÿ
No.]
[Subscript]
L
»•
When
-
Register
given
type
|M|
(V:
S
S|M|I|0|C|#|D|X|Y|Z|A)
(V:
[Subscript]
L
Can
Necessary
(to
differentiate
subscript).
T
given
No.
by
V
|
O
I
designate
when
designate
Can
(bit
B
=
by
(T:
B|W
|
#
C
i
the
subscript
a
between
subscript
the
(hexadecimal:
type)
(decimal/hexadecimal)
V
F
L
I
be
to
symbol
|
A)
i
used
name
or
j.
|
D)
!
subscript
is
the
and
j.
or
i
F)
0
to
the
3-2
Name
am
Alphabetic
*
(A
attached
i
Alphanumeric
number
the
to
symbolic
or
cannot
register:
symbolic
or
character
be
used
charactersorless
8
characters
the
at
head
of
symbol
a
name.)
3.2
Types
Data
There
real
are
number
Address
Refer
to
device
type
the
for
data
five
type,
data
Control
details.
types;
and
may
Pack
the
the
address
be
used
CP-9200SH
bit
type,
only
type.
for
Table
the
These
pointer
User’s
3.2
integer
are
designation.
Manual
Data
3.
REGISTER
double-length
the
type,
according
used
(SIE-C879-40.1)
Types
MANAGEMENT
integer
the
to
purpose.
the
for
METHOD
type,
the
corresponding
Type
B
W
L
F
Type
Data
Bit
Integer
Double¬
length
integer
Real
number
Numerical
OFF
ON,
-32768
(8000H)
-2147483648
+32767
to
(7FFFH)
(80000000H)
±(1.175E
38),0
+
-38
Range
2147483647
to+
(7FFFFFFFH)
3.402E
to
for
for
usedinthe
are
that
instruction
a
in
begin
relay
numerical
Used Used
(
)
operations.
Ordinarily
groups
entry
used
that
instruction
Used
(
)
for
usedinthe
are
numerical
operations.
Ordinarily
groups
entry
used
that
instruction
Used
May
with
instruction
that
that
instruction
a
in
begin
numerical
for
only
real
a
cannot
it
instruction
integer
type
Remarks
circuits.
operations.
logic
of
case
used
begin
seriesofinstruction
with
(||—
used
begin
seriesofinstruction
with
(||—
seriesofinstruction
a
in
integer
an
with
).
can
It
Q—
number
real
a
).
operations.
logic
of
case
in
series
a
integer
an
with
).
can
It
({—
real
number
a
).
operations.
used
).
(|}—
be
groups
entry
in
series
a
entry
type
Please
used
that
keep
in
begin
instruction
a
be
number
Values
also
groups
type
Values
instruction
of
also
groups
type
begins
that
mind
in
series
of
with
(}—
in
type
be
entry
in
type
be
entry
an
).
Address
A
Register
[M
W001
[MW00101] [MW00102] [MW00103]
32767
0
to
Designation
FEDCBA9876543210
00]
and
Data
r
Types
Used
[MB001006]
r
[MB00103A]
only
for
pointer
[ML00100]
“I
[MF00100]
[ML00102]
[MF00102]
designation.
3-3
Pointer
Designation
j-
Fig.
In
By
handing
internal
for
is
referred
can
be
Memory
Address
nn
II
LMAOOIOO:
MAOOIOO
3.1,
MAOOIOO
processes
"pointer
to
as
freely
used
for
signifies
to
of
bits,
Register
_
_
_
3.1
Pig.
the
a
function,
the
function.
designation".
integers,
Domain
SSSSg
,
_
$3
Pointer
memory
the
Such
double-length
register
this
In
address
useofan
way,
[MWOOIOO]
[MI
00101]
[OT00102]
[Mf
00103]
Designation
of
nn
domain
address
register
the
integers,
[ML00100]
i
J
[BF00100]
MWOOIOO.
below
MWOOIOO
argument
as
an
domain
or
real
may
of
below
numbers.
be
used
a
function
MWOOIOO
3-4
3.3
Type
of
Registers
3.
REGISTER
MANAGEMENT
METHOD
3.3.1
Type
M
I
S
DWG
The
Refer
Name
System
register
Data
regoster
Input
register
Registers
types
7
to
the
Designation
SB,
SFnnnnn
(SAnnnnn)
MB,
ML,
MFnnnnn
(MAnnnnn)
IB,
IFhhhh
(IAhhhh)
register
of
Control
Method
SW,
MW,
IW,
SL,
IL,
shown
CP-9200SH
Pack
Registers
The
Upon
cleared
Registers
Used
The
expression.
Register
and The
expression.
The
configuration
numbers
with
details,
module.
in
Table
can
3.3
User's
3.3
Table
made
register
system
to
used
I/F
for
register
that
0.
DWG
available
No.
nnnnn
start-up,
common
in
between
number
used
is
communication
register
register
number number
definition
COOO
and
refer
modules
the
to
motion
be
used
Manual
each
in
(SIE-C879-40.1)
Registers
Description
the
decimal
a
system.
by
is
SW00000-SW00049
etc.
is
DWG's.
decimal
a
with
among
DWG's,
nnnnn
for
interface
module.
hexadecimal
is
hhhh
is
later
such
instruction
a
assigned
screen.
used
are
SVA
as
manual
on
The
for
modules.
DWG.
for
expression.
are
module
I/O
the
module
register
interface
For
each
of
details.
Characteristic
all
Used
common
DWG's
in
by
O
C
#
D
Output
register
Constant
register
#
register
register
D
OW,
OB,
OFhhhh
(OAhhhh)
CB,
CW,
CFnnnnn
(CAnnnnn)
#W,
#B,
#Fnnnnn
(#Annnnn)
DW,
DB,
DFnnnnn
(DAnnnnn)
OL,
CL,
#L,
DL,
Register
and
The
expression.
The
configuration
numbers
with
details,
thatisused
communication
register
register
COOO
motion
refer
module.
Register
program.
expression.
Registers
program.
Can
The
user
The
that
The
only
referenced
actual
with
the
register
that
expression.
Internal
Can
The
user
The
expression.
registers
only
referenced
actual
with
register
the
module.
number
number
hhhh
definition
and
later
modules
instruction
to
the
only
can
register
only
can
the
application
CP-
717.
number
_
unique
the
application
CP-
717.
number
for
interface
is
a
assigned
is
screen.
used
are
such
be
SVA
as
referenced
number
referenced
be
corresponding
range
nnnnn
nnnnn
is
is
each
to
corresponding
range
is
isadecimal
I/O
with
hexadecimal
the
register
interface
for
module
on
The
modules.
of
by
is
in
each
a
a
decimal
a
DWG.
by
manual
nnnn
specified
decimal
a
_
DWG.
DWG.
specified
by
module
For
the
the
Unique
DWG
each
to
3-5
3.3.2
Function
Registers
Type
X
Y
Z
A
#
D
S
M
1
0
C
The
Refer
Name
Function
input
register
Function
output
register
Register
inside
function
Register
outside
function
#
Register
D
register
System
register
Data
register
Input
register
Output
register
Constant
register
types
1
1
the
to
Designation
XB,XW,XL,XFnnn
YB,YW,YL,YF
ZB,ZW,ZL,ZFnnnnn
AB.AWÿALÿAFnnnnn
#B,#W,#L,#Fnnnnn
(#Annnnn)
DB,DW,DL,DFnnnnn
(DAnnnnn)
SB,SW,SL,SFnnnnn
(SAnnnnn)
MB,MW,MUMFnnnnn
(MAnnnnn)
registers
of
Control
Method
nnnnn
ffi,IW,IL,IFhhhh
(IAhhhh)
OB,OW,OL,OFhhhh
(OAhhhh)
CB,CW,CL,CFrmnmi
(CAnnnnn)
shown
Pack
nn
in
Table
CP-9200SH
3.4
Table
Input
Bit
Integer Double-length
The
Outputs
Bit
Integer
Double-length
The Internal
Can
The
External
address.
For
The
Register
Can
The
CP-717.
The
Characteristic Can
The
CP-717.
The
Same
(Since
functions,
referenced
into
input
input
register
from
output
output
register
registers
used
be
register
registers
linking
register
that
reference
actual
register
reference
actual
register
the
as
these
be
a
with
application
application
from
can
3.4
User's
Function
function
number
a
number
for
number
number
can
only
number
internal
only
number
DWG
registers
careful
Manual
Registers
Description
:XBOOOOOO
:XW00001
integer
input:
nnnnn
function
:YBOOOOOO
:YW00001toYW00016
integer
output:
nnnnn
unique
to
nnnnn
that
(S,
M,
nimnn
only
the
nnnnn
the
nnnnn
registers.
are
of
processes
use
I,
0,
be
referenced
corresponding
range
register
corresponding
range
used
their
internal
DWG'sofdifferent
be
used
in
(SIE-C879-40.1)
toXBOOOOOF
to
XW00016
XL00001
is
a
decimal
YBOOOOOF
to
YL00001
isadecimal
each
function.
the
of
is
a
decimal
address
the
DAnnnnn).
#,
is
decimal
a
by
specified
a
decimal
for
each
specified
function.
|
function.
is
is
is
!
is
a
decimal
in
common
use
when
priority
each
function.
toXL00015
expression.
YL00015
to
expression.
function.
expression.'
input
value
expression.
a
program.
by
the
user
expression.
function.
by
the
user
expression.
by
both
the
same
levels.)
for
as
with
with
DWG's
function
details.
the
the
the
and
is
base
Characteristic
Unique
each
Used
common
DWG's
to
function
in
by
3-6
(Note)
3.3.3
SA,
MA,
CPU
The
user
LA,
OA,
Internal
registers
program
Register
A
register
register
F
register
B
register
I
register
J
DA,
#A
and
CA
Registers
showninTable
processes.
Used
operations.
Used
Used
Used
Used
may
as
as
for
as
as
also
3.5
Table
register
a
register
a
relay
an
an
used
be
are
3.5
_
circuit
index
index
inside
provided
CPU
logic,
for
real
for
operations
register
register
a
function.
inside
Internal
Usage
integer,
number
(I).
(J).
the
CPU.
Registers
and
operations.
These
are
used
double-length
for
carrying
integer
out
REGISTER
3.
MANAGEMENT
METHOD
3.3.4
Subscripts
types
Two
number,
These
(1)
i
subscripts
When
This
MBOOOOOOi
1=2,
MB000001B.
(2)
When
This
1=3,
if
MW00031.
When
(3)
This
1=1,
if
and
J=l.
i
j
and
registers,
of
j
and
have
are
Subscript
a
equivalent
be
will
b2
MBOOOOOOi
j
Subscript
a
equivalent
be
will
MWOOOlOi
-00030
-MWOOOOlj
Subscript
a
equivalent
be
will
MLOOOOOi
Be
careful.
MLOOOOOJ
ML00000
MLOOOOOJ
ML00001
i
and
the
same
explained
is
Attached
to
the
be
will
Attached
is
to
be
will
is
Attached
to
be
will
when
when
j,
are
function.
below
adding
same
=>I
adding
the
same
=>J
adding
the
same
J=0
J=1
exclusively
used
an
with
Bit
Type
to
value
the
as
MB000002.
equivalent
Integer
to
the
value
MW00013.
as
equivalent
Double-Length
to
value
the
ML00001.
as
:
:
for
example
Data
i
of
or
If
Type
Data
i
of
or
If
i
of
or
Upper
MW00001
MW00002
modifying
for
each
j
to
J=27,
MB
j
to
J=30,
MW00031
|—
Integer
j
to
MLOOOOOj
relay
the
MBOOOOOOj
000002
register
the
MWOOOOlj
Type
register
the
word
relay
a
register
number.
number.
Data
number.
be
will
Lower
word
MW00000
MW00001
number
data
will
will
as
follows
type.
For
be
For
be
For
register
or
example
the
same
example,
same
the
example,
when
if
as
as
J=0
(4)
(5)
When
if
This
1=1,
and
a
will
MFOOOOOi
J=l.
Example
The
program
MW00199
to
Subscript
be
is
equivalent
will
careful
Be
MFOOOOOJ
MF00000
MFOOOOOJ
MF00001
Program
of
when
when
shown
is
in
in
set
00000
h
FOR
MW00200+MW00100j
h
FEND
Fig.
Attached
adding
to
be
the
same
J=0
J=1
Using
a
Fig.
3.2
MW00200
=00000
J
3.2
Example
Real
to
the
as
:
:
Subscript
is
one
the
by
00099
to
of
Number
of
i
value
MF00001.
Upper
MW00001
m
MW00002
which
in
subscript
of
use
by
00001
Program
Data
Type
j
the
to
or
MFOOOOOj
word
the
total
a
Using
register
will
Lower
MW00000
MW00001
for
100
j.
MW00200
VV
M
Subscript
number.
be
as
word
registers
00200
For
follows
from
example,
J=0
when
MW00100
3-7
3.3.5
Function
I/O
and
Function
Registers
inputs
The
shown
as
details.
for
Table
Function
input
Bit
Integer, length
real
integer,
number
Address
output
Bit
S
Integer,
length
number
real
outputs
integer,
outputs
and
in
Table
3.6
I/O
double¬
inputs
input
double¬
3.6.
Correspondence
>
and
and
function
a
in
Refer
to
_
bit
The
input.
bit
of
register
The
XF00001
and number
(XW00001, (XL00001,
(XF00Q01,
address
The
register.
AW00001...)
=
The
bit
bit
output.
of
register
The
YF00001
and
real
number
(YWOOOOl,
(YL00001,
(YF00001,
referencing
the
Control
between
number
(XBOOOOOO,
number
in
input.
XW00002,
XL00003, XF00003,
input
(Input
number
value
(YBOOOOOO,
number
in
output,
YW00002,
YL00003,
YF00003,
Pack
Function
Function
increases
XB000001,
increases
orderofthe
the
XW00003,
XL00005, XF00005,
corresponds
value
MA00100
=
increases
increases
the
orderofthe
respectively.
YW00003,
YL00005,
YF00005,
process
CP-9200SH
continuously
continuously
YB000001,
correspond
User's
and
I/O's
Register
XB000002,
continuously
integer-double-length
,
XW00016)
...
,
XL00015)
...
XP00Q15)
,
...
to
MW00100
:
YB000002,
continuously
integer,
YW00016)
,
...
YL00015)
,
...
YF00015)
,
...
to
Manual
Function
_
XB000000
from
from
_
register
=
from
XBOOOOOO
from
double-length
the
function
(SIE-C879-40.1)
Registers
in
XBOOOOOF)
...
XW00001,
integer-real
the
of
No.
0
AWOOOOO,
...
YWOOOOl,
MW00101
in
YBOOOOOF)
,
integer,
registers
the
order
XL00001,
external
the
order
YL00001,
and
the
In
AWOOOOO
fr
"
|-
MW01000
"
MW00400
-
I
ML00402
MW00404
MW00406
function
-
HI
program
AW00001
+
MW01001
+
=>
lh~
======>
======>
======>
Fig.
shown
in
AW00002"
=>
operation:
MW01002"
=>
FUNC-011
XBOOOOOO
XB000001
XW00001
XB000002
XL00002
XW00004 XW00005
AWOOOOO
MA01000
3.3
Function
Fig.
3.3,
if
is
written
is
executed.
YBOOOOOO
YB000001,
YB000002
YL00001
YL00003
YW00005
YL00006
Program
in
the
program
======>
==:===)
i\
>
======>
inside
O
o-
O
ML00410
ML00412
MW00414
ML00416
the
function,
the
3-8
3.
REGISTER
MANAGEMENT
METHOD
3.3.6
Programs
©
Constant
(#B,
Individual
(PB,
and
DWGH03
Program
Max.
Registers
each
DWG
data
#W,
data
DW,
FUNC-000
Program
Max.
Register
(Drawing)
500
unique
Max
»L,
Max.
DFmugm)
PL,
(Function)
500
steps
steps
to
words
16384
»Fmumn)
16384
words
Referencing
Function
(AB,
AW,
Ranges
<D
external
AL,
register
AFnnnnn)
Registers
System
(SB,
Data
(MB.
Input
GB,
common
registers
SW.
registers
MW,
registers
IW,
IL,
SL
ML,
all
to
SFnmnm)
MFraumn)
IFhhhh)
DWGs
©
(D
(2)
(3)
©
Registers
each
function
Function
(XB,
XW,
Function
(YB,
YW,
Function
ZW,
f"/U
Constant
(#B,
*W,
Individual
(DB,
DW,
The
:
drawing
Registers
:
Registers
:
The
:
each
to
registers.
unique
registers
input
XL,
registers
output
YL,
internal
71.
data
Max.
*L,
data
Max.
PL,
registers
or
that
that
registers
drawing
to
words
17
XFtanum)
words
17
YFnmmn)
register
ZFnncnn)
16384
words
#Fmnmn)
words
16384
DFcnimn)
that
function.
unique
are
are
unique
that
can
may
can
be
to
be
be
used
in
each
to
each
function
used
common
in
referenced
only
by
by
can
be
the
common
drawing
can
fromafunction
Output
(OB.
Constant
(CB,
the
DWG's
only
be
referenced
DWG’s
by
registers
OL.
OW.
registers
CW,
CL,
may
be
referenced
that
within
and
the
registers
the
use
of
OFhhhh)
CFtmnnn)
referenced
within
that
function.
that
function
the
from
drawing.
unique
are
external
any
3-9
3.4
Symbol
Management
3.4.1
Symbol
All
registration
performed
Management
symbols
modification
any
done
for
-17.5)
single
a
for
When
Since
time
the
an
only
designation
usedinthe
symbols
of
symbol
the
on
symbols
of
while
drawing.
method
unregistered
the
the
of
Register
NO7
0
IBOOOOO
OBOOOOO
1
2
MW00000
3
MB000010
4
MW00010
5
MW00020
MW00021
6
:
N
a
If
:
*
index
configurations.
For
the
in
the
in
DWG
on
definition
as
program
a
Refer
defining
of
symbol
register
No.
program
process
example,
range
DWG
's
managed
are
symbol
the
screen
well
to
is
the
as
being
Control
designation
DWG
symbol
will
is
be
registered
number
Table
Symbol
STARTPBL
STARTCOM
SPDMAS
WORK-DB
PIDDATA
LAUIN
LAUOUT
prepared
is
data,
etc.,
data
to
9,
is
define
if
0
by
the
table
and
the
of
prepared.
Pack
symbol
used
tables.
during
automatically
become
will
3.7
DWG
Size
1
1 1
16
10
1
1
using
such
define
the
referenced
the
size
symbol
DWG
designation
CP-
17.
7
modification
or
maximum
A
CP-717
program
necessary
Symbol
*
The
hexadecimal
The
hexadecimal
data
sizes
as
PIDDATA.i
10.
as
table
register
of
Further,
Operation
registration,
of
register
of
symbols
200
Manual
preparation...
in
the
the
after
Table
Remarks
register
register
number
expression.
number
expression.
configurations
used
the
in
and
shown
symbol
DWG
program
is
is
as
respective
i.takes
on
Fig.
in
numbers
deletion,
numbers
be
can
Both
3.7.
can
be
and
can
be
registered
(SIE-C877-17.4,
the
is
a
a
arrays,
table,
prepared.
data
values
3.4.2
Symbol
symbols
The
The
registration,
register
of
a
Management
usedinthe
deletion,
number
Register
No.
0
XB000000
'
1
XW00001 AW00001
2
3
AB00000F
4
YBOOOOOO
YW00001
5
ZB000000
6
7
ZW00001
ZW00002
8
N
a
If
:
*
index
configurations.
For
the
in
in
the
functions
and
carried
are
No.
program
process
example,
range
Functions
all
are
modification
out
in
Table
Symbol
EXECQM
INPUT
P-GAIN
ERROR
PIDEXE
PIDOUT
WORKCOIL
'
WORK1
WORK2
is
prepared
data,
etc.,
data
to
9,
is
define
if
0
managed
symbol
of
a
the
same
3.8
Function
Size
1
using
define
referenced
the
size
with
manner
Symbol
*
1
1
1
1
1
4
1
1
such
the
sizes
as
PIDDATA.i
as
symbol
the
and
the
as
in
data
configurations
usedinthe
10.
table,
designation
the
DWG's.
Table
Remarks
and
i
shown
and
as
arrays,
respective
takes
on
Table
in
3.8.
modification
data
values
3-10
3.
REGISTER
MANAGEMENT
METHOD
3.5
3.5.1
Upward
Upward
The
in
Ordinarily,
DWG
However,
drawing
the
CP-717.
concerning
Linking
upward
drawings
or
function
may
same
Refer
Linking
linking
different
of
symbol
a
using
by
be
type.
The
to
setting
the
Table
Symbol
Symbols Symbols
Symbols
Symbols
of
Symbols
Symbols
of
symbols
of
hierarchical
that
program
upward
the
referenced
upward
the
Control
method.
3.9
Linkable
parent
of
a
of
a
child
grandchild
of
a
inside
is
defined
and
by
a
linking
Pack
Symbol
drawing
function
a
and
refers
to
rank
for
cannot
linking
drawingaslong
child
of
CP-717
Symbols
Table
drawing
drawing
Automatic
defining
the
be
can
certain
a
be
referenced
function
symbol
a
Operation
and
drawing
Number
symbols
of
to
DWG
by
symbols,
as
at
set
reference
or
other
the
the
used
for
is
Manual
Symbol
Table
Parent
X
O.
O
X X
Linkable
:
O
Allocation
that
so
the
function
DWG's
symbol
a
drawings
Symbol
(SIE-C877-17.4,
for
Child
drawing
x
x
o.
X
X
Not
:
symbol
register
same
becomes
functions.
or
defined
process
are
Definition
Linking
Grandchild
drawing
x x
x
linkable
names
unique
screen
-17.5)
defined
number.
to
parent
a
in
drawings
of
for
details
that
of
the
3.5.2
Automatic Automatic
automatic
the
assigned.
been
Setting
screen
-17.5)
automatic
of
for
DWG
System
Input
Output
Data
register
#
register
C
register
D
Register
register
allocation
the
CP-717.
detailed
Symbol
register
regiter
register
register
Number
number
register
of
allocation
Refer
procedures
3.10
Table
Table
Automatic
S
I
0
M
#
C
D
Allocation
allocation
numbers
register
of
to
Control
the
setting
for
Automatic
Number
Allocation
o
o.
o
o
Cl
o.
O
refers
numbers
Pack
them.
Register
System
Input
Output
Data
#
C
D
Function
Function
Function
Function
Automatic
:
O
X
Automatic
:
setting
the
to
symbols
to
can
CP-717
Number
Function
register
register
register
register
register
register
register
input
internal
for
performed
be
Operation
Symbol
register
register
output
external
number
number
the
head
of
register
which
on
Manual
Assignment
Table
S
I
0
M
#
C
D
X
Y
register
register
Z
A
allocation
allocation
register
numbers
symbol
the
(SIE-C877-17.4,
Automatic
Allocation
O
o
o
O
O
o
o
x
X
o
X
possible
impossible
number
have
definition
Number
and
not
3-11
4.

INSTRUCTIONS

BASIC
4
of
All
9200SH
BASIC
instructions
the
describedindetail
are
INSTRUCTIONS
CP-
that
can
in
be
this
used
chapter.
with
4-1
[Arrangement
of
This
Chapter]
chapter,
this
In
[Format]
[Description]
[Operation
the
Description
Description
the
of
Shows
The
perform
A
F
B
I
J
description
Register]
the
registers
user
A
F
O
O
register,
A:
A
Register
register
register
register
register register
each
of
the
of
operands
the
of
functions
storage
status
showninTable
program
I
B
x
o
F:
F
as
Used
operations.
Used
as
Used
for
Used
as
Used
as
instruction
and
of
of
the
4.1
processes.
J
o
register,
Table
a
register
register
a
relay
index
an
index
an
4.1
circuit
arranged
is
the
form
the
instruction.
CPU
internal
provided
are
:
stored
O
:
indeterminate
*
(Stored
B:
register,
B
CPU
for
logic,
for
or
internal
real
operations
register
register
the
of
registers.
inside
x
not
:
not
stored
I:I
Usage
integer,
number
(I).
(J).
the
following
in
operands
the
stored
depending
register,
Registers
and
operations.
manner.
of
the
instruction.
CPU.
These
the
on
register
J
J
:
double-length
are
case.)
integer
used
to
[Example(s)]
Describes
example
an
examples
or
of
simple
a
program
that
uses
the
instruction.
4-2
Loading...
+ 205 hidden pages