Tải bản đầy đủ (.pdf) (1,334 trang)

Panasonic FP PLC manual

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (8.64 MB, 1,334 trang )

Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Table of Contents
Chapter 1

Relays, Memory Areas and Constants

1.1

Table of Relays, Memory Areas and Constants . . . . . . . . . . . . . . . . . . . . . . . . 1 - 2
1.1.1
FP0/FP−e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 2
1.1.2
FP0R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 7
1.1.3
FPΣ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 9
1.1.4
FP−X . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 13
1.1.5
FP2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 15
1.1.6
FP2SH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 17
1.1.7
FP10SH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 19
1.1.8
Relay Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 21


1.2

Explanation of Relays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2.1
External Input Relays (X) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2.2
External Output Relays (Y) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2.3
Internal Relays (R) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2.4
Special Internal Relays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2.5
Link Relays (L) for FPΣ, FP−X, FP0R . . . . . . . . . . . . . . . . . . . . . . .
1.2.6
Link Relays (L) for FP2/FP2SH/FP10SH . . . . . . . . . . . . . . . . . . . . .
1.2.7
Timer (T) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2.8
Counter (C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2.9
Items Shared by the Timer and Counter . . . . . . . . . . . . . . . . . . . . .
1.2.10 Pulse Relays (P) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2.11 Error Alarm Relays (E) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1 - 24
1 - 24
1 - 25
1 - 26
1 - 28
1 - 29

1 - 31
1 - 35
1 - 36
1 - 37
1 - 39
1 - 41

1.3

Explanation of Memory Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.3.1
Data Register (DT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.3.2
Special Data Registers (DT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.3.3
File Registers (FL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.3.4
WX, WY, WR and WL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.3.5
Link Data Registers (LD) for FPΣ/FP−X/FP0R . . . . . . . . . . . . . . . .
1.3.6
Link Data Registers (LD) for FP2/FP2SH/FP10SH . . . . . . . . . . . .
1.3.7
Set Value Area for Timer/Counter (SV) . . . . . . . . . . . . . . . . . . . . . .
1.3.8
Elapsed Value Area for Timer/Counter (EV) . . . . . . . . . . . . . . . . . .
1.3.9
Index Registers (IX, IY) (for FP0, FP−e) . . . . . . . . . . . . . . . . . . . . .
1.3.10 Index Registers (I0 to ID) (for FPΣ/FP−X/FP0R) . . . . . . . . . . . . . .
1.3.11 Index Registers (I0 to ID) (for FP2, FP2SH and FP10SH) . . . . . .


1 - 44
1 - 44
1 - 46
1 - 48
1 - 49
1 - 50
1 - 52
1 - 56
1 - 57
1 - 58
1 - 61
1 - 62

1.4

Explanation of Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.4.1
Integer Type Decimal Constants (K) . . . . . . . . . . . . . . . . . . . . . . . . .
1.4.2
Hexadecimal Constants (H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.4.3
Floating Point Type Real Numbers (f) . . . . . . . . . . . . . . . . . . . . . . .

1 - 72
1 - 72
1 - 73
1 - 74
i


Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Table of Contents

1.4.4
1.4.5
1.5

BCD Type Real Numbers (H) (for FP2, FP2SH and FP10SH) . . . 1 - 79
Character Constants (M) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 80

Data Ranges Which can be Handled in the PLC . . . . . . . . . . . . . . . . . . . . . . 1 - 81
1.5.1
Data Ranges Which can be Handled in the PLC . . . . . . . . . . . . . . 1 - 81
1.5.2
Overflow and Underflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 84

Chapter 2

Basic Instructions

2.1

Composition of Basic Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.1.1
Sequence Basic Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.1.2
Basic Function Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.1.3

Control Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.1.4
Data Compare Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.2

Number of Steps in the FP2, FP2SH and FP10SH . . . . . . . . . . . . . . . . . . . . . 2 - 6

Chapter 3
3.1

High−level Instructions

Composition of High-level Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1.1
Composition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1.2
High-level Instruction Numbers and Program Input . . . . . . . . . . . . .
3.1.3
High-level Instruction and Execution Condition (Trigger) . . . . . . . .
3.1.4
“F” and “P” Type High-level Instructions . . . . . . . . . . . . . . . . . . . . . .

Chapter 4

2-3
2-3
2-4
2-4
2-5


3-3
3-3
3-4
3-5
3-6

Precautions Concerning Programs

4.1

Changing the Set Value of Timer/Counter During RUN . . . . . . . . . . . . . . . . . 4 - 3
4.1.1
Method of Rewriting Constant in the Program . . . . . . . . . . . . . . . . . 4 - 3
4.1.2
Method of Rewriting a Value in the Set Value Area . . . . . . . . . . . . . 4 - 5

4.2

Use of Duplicated Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 8
4.2.1
Duplicated Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 8
4.2.2
When Output is Repeated with an OT, KP, SET, or RST
Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 9

4.3

Leading Edge Detection Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.1

Instructions of Leading Edge Detection Method . . . . . . . . . . . . . . .
4.3.2
Operation and Precautions at Run Start Time . . . . . . . . . . . . . . . .
4.3.3
Precautions when Using a Control Instruction . . . . . . . . . . . . . . . .

4.4

Operation Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 15
4.4.1
Operation Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 15

4 - 10
4 - 10
4 - 11
4 - 13

ii
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Table of Contents

4.4.2
4.4.3
4.4.4

Operation Mode when an Operation Error Occurs . . . . . . . . . . . . . 4 - 16
Dealing with Operation Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 17
Points to Check in Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 18

4 - 19
4 - 19
4 - 20
4 - 21

4.5

Handling Index Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.5.1
Index Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.5.2
Memory Areas Which can be Modified with Index Registers . . . .
4.5.3
Example of Using an Index Register . . . . . . . . . . . . . . . . . . . . . . . .

4.6

Handling BCD Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 25
4.6.1
BCD Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 25
4.6.2
Handling BCD Data in the Programmable Controller . . . . . . . . . . . 4 - 25

4.7

Precautions for Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 27

4.8

Rewrite Function During RUN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4.8.1
Operation of Rewrite During RUN . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.8.2
Cases Where Rewriting During Run is not Possible . . . . . . . . . . .
4.8.3
Procedures and Operation of Rewrite During RUN . . . . . . . . . . . .

4.9

Processing During Forced Input and Output . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 32
4.9.1
Processing when forced input/output is initiated during RUN . . . . 4 - 32

4 - 28
4 - 28
4 - 29
4 - 31

4.10 Second Program Area (FP2SH, FP10SH) . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 34

Chapter 5

Appendix

5.1 System Registers / Special Internal Relays / Special Data Registers....... 5−3
5.1.1 Table of System Registers for FP0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5−5
5.1.2 Table of Special Internal Relays for FP0 . . . . . . . . . . . . . . . . . . . . . . . . . 5−15
5.1.3 Table of Special Data Registers for FP0 . . . . . . . . . . . . . . . . . . . . . . . . . 5−18
5.1.4 Table of System Registers for FP−e . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5−28
5.1.5 Table of Special Internal Relays for FP−e . . . . . . . . . . . . . . . . . . . . . . . 5−32

5.1.6 Table of Special Data Registers for FP−e . . . . . . . . . . . . . . . . . . . . . . . . 5−36
5.1.7 Table of System Registers for FP0R . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5−43
5.1.8 Table of Special Internal Relays for FP0R . . . . . . . . . . . . . . . . . . . . . . . 5−49
5.1.9 Table of Special Data Registers for FP0R . . . . . . . . . . . . . . . . . . . . . . . 5−59
5.1.10 Table of System Registers for FPΣ . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5−78
5.1.11 Table of Special Internal Relays for FPΣ . . . . . . . . . . . . . . . . . . . . . . . 5−84
5.1.12 Table of Special Data Registers for FPΣ . . . . . . . . . . . . . . . . . . . . . . . 5−93
5.1.13 Table of System Registers for FP−X . . . . . . . . . . . . . . . . . . . . . . . . . 5−107
5.1.14 Table of Special Internal Relays for FP−X . . . . . . . . . . . . . . . . . . . . . 5−119
5.1.15 Table of Special Data Registers for FP−X . . . . . . . . . . . . . . . . . . . . 5−130
5.1.16 Table of System Registers for FP2/FP2SH/FP10SH . . . . . . . . . . . 5−151
5.1.17 Table of Special Internal Relays for
FP1/FP−M/FP2/FP2SH/FP10SH/FP3
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5−165
iii
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Table of Contents

5.1.18 Special Data Registers for FP2/FP2SH/FP3/FP10SH . . . . . . . . . . 5−176
5.2 Table of Basic Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5−201
5.3 Table of High−level Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5−209
5.4 Table of Error codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5−229
5.5 MEWTOCOL−COM Communication Commands . . . . . . . . . . . . . . . . . . . . . . 5−242
5.6 Hexadecimal/Binary/BCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5−243
5.7 ASCII Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5−244

Record of changes


............................................... R-1

iv
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Table of Contents

Basic Instructions
Sequence basic instructions

TMX

On−delay timer TMX . . . . 2 − 42

ST

Start . . . . . . . . . . . . . . . . . . . 2 − 8

TMY

On−delay timer TMY . . . . 2 − 42

ST/

Start Not . . . . . . . . . . . . . . . 2 − 8

CT

Counter . . . . . . . . . . . . . . . 2 − 48


OT

Out . . . . . . . . . . . . . . . . . . . . 2 − 8

SR

Shift register . . . . . . . . . . . 2 − 54

/

Not . . . . . . . . . . . . . . . . . . . 2 − 10

AN

AND . . . . . . . . . . . . . . . . . . 2 − 11

AN/

AND Not . . . . . . . . . . . . . . 2 − 11

OR

OR . . . . . . . . . . . . . . . . . . . 2 − 12

OR/

OR Not . . . . . . . . . . . . . . . . 2 − 12

ST↑


Leading edge start . . . . . . 2 − 14

ST↓

Trailing edge start . . . . . . 2 − 14

AN↑

Leading edge AND . . . . . 2 − 14

AN↓

Trailing edge AND . . . . . . 2 − 14

OR↑

Leading edge OR . . . . . . . 2 − 14

OR↓

Trailing edge OR . . . . . . . 2 − 14

OT↑

Leading edge out . . . . . . . 2 − 16

OT↓

Trailing edge out . . . . . . . 2 − 16


ALT

Alternative out . . . . . . . . . 2 − 18

ANS

AND stack . . . . . . . . . . . . . 2 − 19

ORS

OR stack . . . . . . . . . . . . . . 2 − 21

PSHS

Push stack . . . . . . . . . . . . 2 − 23

RDS

Read stack . . . . . . . . . . . . 2 − 23

POPS

Pop stack . . . . . . . . . . . . . 2 − 23

DF

Leading edge differential 2 − 26

Subroutine instructions


DF/

Trailing edge differential . 2 − 26

CALL

Subroutine call . . . . . . . . . 2 − 86

DFI

Leading edge differential
(initial execution type) . . . 2 − 30

FCAL

Output off type
subroutine call . . . . . . . . . 2 − 89

SET

Set . . . . . . . . . . . . . . . . . . . 2 − 32

SUB

Subroutine entry . . . . . . . . 2 − 86

RST

Reset . . . . . . . . . . . . . . . . . 2 − 32


RET

Subroutine return . . . . . . . 2 − 86

KP

Keep . . . . . . . . . . . . . . . . . 2 − 34

NOP

No operation . . . . . . . . . . . 2 − 35

Control instructions
MC

Master control relay . . . . . 2 − 57

MCE

Master control relay end . 2 − 57

JP

Jump . . . . . . . . . . . . . . . . . 2 − 61

LBL

Label . . . . . . . . . . 2 − 61, 2 − 64


LOOP

Loop . . . . . . . . . . . . . . . . . . 2 − 64

BRK

Break . . . . . . . . . . . . . . . . . 2 − 68

ED

End . . . . . . . . . . . . . . . . . . . 2 − 70

CNDE

Conditional end . . . . . . . . 2 − 71

EJECT Eject . . . . . . . . . . . . . . . . . . . 2 −73

Step ladder instructions
SSTP

Start step . . . . . . . . . . . . . . 2 − 75

NSTL

Next step . . . . . . . . . . . . . . 2 − 75

NSTP

Next step . . . . . . . . . . . . . . 2 − 75


CSTP

Clear step . . . . . . . . . . . . . 2 − 75

STPE

Step end . . . . . . . . . . . . . . 2 − 75

SCLR

Clear multiple processes 2 − 85

Interrupt instructions
INT

Interrupt . . . . . . . . 2 − 91. 2 − 97

Basic function instructions

IRET

Interrupt return . . 2 − 91, 2 − 97

TML

On−delay timer TML . . . . 2 − 36

ICTL


Interrupt control 2 − 102, 2 − 110

TMR

On−delay timer TMR . . . . 2 − 42
v

Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Table of Contents

Special setting instructions
SYS1

Communication conditions
setting . . . . . . . . . . . . . . . 2 − 119
Password setting . . . . . . 2 − 123
Interrupt setting . . . . . . . 2 − 125
PLC link time setting . . . 2 − 127
Change high−speed counter
operation mode . . . . . . . 2 − 129

STF>

Floating point real number data
comparison: (Start) . . . . 2 − 140

STF>= Floating point real number data
comparison: (Start) . . . . 2 − 140

STF<

Floating point real number data
comparison: (Start) . . . . 2 − 140

STF<= Floating point real number data
comparison: (Start) . . . . 2 − 140
AN=

MEWTOCOL−COM response
control . . . . . . . . . . . . . . . 2 − 131

16−bit data compare
(AND) . . . . . . . . . . . . . . . . 2 − 142

AN<>

Change system registers
(No.40 to No.47,
No.50 to No.57) . . . . . . . 2 − 133

16−bit data compare
(AND) . . . . . . . . . . . . . . . . 2 − 142

AN>

16−bit data compare
(AND) . . . . . . . . . . . . . . . . 2 − 142

AN>=


16−bit data compare
(AND) . . . . . . . . . . . . . . . . 2 − 142

AN<

16−bit data compare
(Start) . . . . . . . . . . . . . . . . 2 − 136

16−bit data compare
(AND) . . . . . . . . . . . . . . . . 2 − 142

AN<=

ST<>

16−bit data compare
(Start) . . . . . . . . . . . . . . . . 2 − 136

16−bit data compare
(AND) . . . . . . . . . . . . . . . . 2 − 142

AND=

ST>

16−bit data compare
(Start) . . . . . . . . . . . . . . . . 2 − 136

32−bit data compare

(AND) . . . . . . . . . . . . . . . . 2 − 144

ST>=

16−bit data compare
(Start) . . . . . . . . . . . . . . . . 2 − 136

ST<

16−bit data compare
(Start) . . . . . . . . . . . . . . . . 2 − 136

ST<=

16−bit data compare
(Start) . . . . . . . . . . . . . . . . 2 − 136

STD=

32−bit data compare
(Start) . . . . . . . . . . . . . . . . 2 − 138

SYS2

Data compare instructions
ST=

STD<> 32−bit data compare
(Start) . . . . . . . . . . . . . . . . 2 − 138
STD>


32−bit data compare
(Start) . . . . . . . . . . . . . . . . 2 − 138

AND<> 32−bit data compare
(AND) . . . . . . . . . . . . . . . . 2 − 144
AND>

32−bit data compare
(AND) . . . . . . . . . . . . . . . . 2 − 144

AND>= 32−bit data compare
(AND) . . . . . . . . . . . . . . . . 2 − 144
AND<

32−bit data compare
(AND) . . . . . . . . . . . . . . . . 2 − 144

AND<= 32−bit data compare
(AND) . . . . . . . . . . . . . . . . 2 − 144
ANF=

Floating point real number data
comparison: (AND) . . . . 2 − 146

ANF<> Floating point real number data
comparison: (AND) . . . . 2 − 146

STD>= 32−bit data compare
(Start) . . . . . . . . . . . . . . . . 2 − 138


ANF>

STD<

ANF>= Floating point real number data
comparison: (AND) . . . . 2 − 146

32−bit data compare
(Start) . . . . . . . . . . . . . . . . 2 − 138

Floating point real number data
comparison: (AND) . . . . 2 − 146

STD<= 32−bit data compare
(Start) . . . . . . . . . . . . . . . . 2 − 138

ANF<

STF=

ANF<= Floating point real number data
comparison: (AND) . . . . 2 − 146

Floating point real number data
comparison: (Start) . . . . 2 − 140

STF<> Floating point real number data
comparison: (Start) . . . . 2 − 140


OR=

Floating point real number data
comparison: (AND) . . . . 2 − 146

16−bit data compare
(OR) . . . . . . . . . . . . . . . . . 2 − 148

vi
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Table of Contents

OR<>

16−bit data compare
(OR) . . . . . . . . . . . . . . . . . 2 − 148

OR>

16−bit data compare
(OR) . . . . . . . . . . . . . . . . . 2 − 148

OR>=

16−bit data compare
(OR) . . . . . . . . . . . . . . . . . 2 − 148

OR<


16−bit data compare
(OR) . . . . . . . . . . . . . . . . . 2 − 148

OR<=

16−bit data compare
(OR) . . . . . . . . . . . . . . . . . 2 − 148

ORD=

32−bit data compare
(OR) . . . . . . . . . . . . . . . . . 2 − 150

ORD<> 32−bit data compare
(OR) . . . . . . . . . . . . . . . . . 2 − 150
ORD>

32−bit data compare
(OR) . . . . . . . . . . . . . . . . . 2 − 150

ORD>= 32−bit data compare
(OR) . . . . . . . . . . . . . . . . . 2 − 150
ORD<

32−bit data compare
(OR) . . . . . . . . . . . . . . . . . 2 − 150

ORD<= 32−bit data compare
(OR) . . . . . . . . . . . . . . . . . 2 − 150

ORF=

Floating point real number data
comparison: (OR) . . . . . 2 − 152

ORF<> Floating point real number data
comparison: (OR) . . . . . 2 − 152
ORF>

Floating point real number data
comparison: (OR) . . . . . 2 − 152

ORF>= Floating point real number data
comparison: (OR) . . . . . 2 − 152
ORF<

Floating point real number data
comparison: (OR) . . . . . 2 − 152

ORF<= Floating point real number data
comparison: (OR) . . . . . 2 − 152

vii
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Table of Contents

High−level Instructions
Data transfer instructions

F0
P0

MV
PMV

16-bit data move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 8

F1
P1

DMV
PDMV

32-bit data move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 10

F2
P2

MV/
PMV/

16-bit data invert and move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 12

F3
P3

DMV/
PDMV/


32-bit data invert and move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 14

F4
P4

GETS
PGETS

Reading of head word No. of the specified slot. . . . . . . . . . . . . . 3 − 16

F5
P5

BTM
PBTM

Bit data move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 17

F6
P6

DGT
PDGT

Hexadecimal digit data move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 21

F7
P7

MV2

PMV2

Two 16-bit data move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 25

F8
P8

DMV2
PDMV2

Two 32-bit data move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 27

F10
P10

BKMV
PBKMV

Block move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 29

F11
P11

COPY
PCOPY

Block copy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 31

F12


ICRD

Data read from EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 33
Data read from F−ROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 35

F12
P12

ICRD
PICRD

Data read from IC card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 37

P13

PICWT

Data write to EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 39
Data write to F−ROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 41

F13
P13

ICWT
PICWT

Data write to IC card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 43

F14
P14


PGRD
PPGRD

Program read from IC card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 45

F15
P15

XCH
PXCH

16-bit data exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 49

F16
P16

DXCH
PDXCH

32-bit data exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 51

F17
P17

SWAP
PSWAP

Higher/ lower byte in 16-bit data exchange . . . . . . . . . . . . . . . . . 3 − 53


F18
P18

BXCH
PBXCH

16−bit blocked data exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 55

viii
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Table of Contents

Control instruction
F19
LBL

SJP

Auxiliary jump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 57

Binary arithmetic instructions
F20
P20

+
P+

16-bit data addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 59


F21
P21

D+
PD+

32-bit data addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 61

F22
P22

+
P+

16-bit data addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 63

F23
P23

D+
PD+

32-bit data addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 65

F25
P25


P−


16-bit data subtraction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 67

F26
P26

D−
PD−

32-bit data subtraction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 69

F27
P27


P−

16-bit data subtraction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 71

F28
P28

D−
PD−

32-bit data subtraction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 73

F30
P30


*
P*

16-bit data multiplication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 75

F31
P31

D*
PD*

32-bit data multiplication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 77

F32
P32

%
P%

16-bit data division . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 79

F33
P33

D%
PD%

32-bit data division . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 81

F34

P34

*W
P*W

16-bit data multiplication (result in 16 bits) . . . . . . . . . . . . . . . . . . 3 − 83

F35
P35

+1
P+1

16-bit data increment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 85

F36
P36

D+1
PD+1

32-bit data increment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 87

F37
P37

−1
P−1

16-bit data decrement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 89


F38
P38

D−1
PD−1

32-bit data decrement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 91

F39
P39

D*D
PD*D

32-bit data multiplication (result in 32 bits) . . . . . . . . . . . . . . . . . . 3 − 93

BCD arithmetic instructions
F40
P40

B+
PB+

4-digit BCD data addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 95

ix
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:



Table of Contents

F41
P41

DB+
PDB+

8-digit BCD data addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 97

F42
P42

B+
PB+

4-digit BCD data addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 99

F43
P43

DB+
PDB+

8-digit BCD data addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 101

F45
P45

B−

PB−

4-digit BCD data subtraction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 103

F46
P46

DB−
PDB−

8-digit BCD data subtraction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 105

F47
P47

B−
PB−

4-digit BCD data subtraction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 107

F48
P48

DB−
PDB−

8-digit BCD data subtraction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 109

F50
P50


B*
PB*

4-digit BCD data multiplication . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 111

F51
P51

DB*
PDB*

8-digit BCD data multiplication . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 113

F52
P52

B%
PB%

4-digit BCD data division . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 115

F53
P53

DB%
PDB%

8-digit BCD data division . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 117


F55
P55

B+1
PB+1

4-digit BCD data increment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 119

F56
P56

DB+1
PDB+1

8-digit BCD data increment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 121

F57
P57

B−1
PB−1

4-digit BCD data decrement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 123

F58
P58

DB−1
PDB−1


8-digit BCD data decrement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 125

Data compare instructions
F60
P60

CMP
PCMP

16-bit data comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 127

F61
P61

DCMP
PDCMP

32-bit data comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 131

F62
P62

WIN
PWIN

16-bit data band comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 135

F63
P63


DWIN
PDWIN

32-bit data band comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 137

F64
P64

BCMP
PBCMP

Block data comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 139

Logic operation instructions
F65
P65

WAN
PWAN

16-bit data AND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 143

x
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Table of Contents

F66
P66


WOR
PWOR

16-bit data OR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 145

F67
P67

XOR
PXOR

16-bit data exclusive OR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 147

F68
P68

XNR
PXNR

16-bit data exclusive NOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 149

F69
P69

WUNI
PWUNI

16-bit data unite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 151


Data conversion instructions
F70
P70

BCC
PBCC

Block check code calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 153

F71
P71

HEXA
PHEXA

Hexadecimal data → ASCII code . . . . . . . . . . . . . . . . . . . . . . . . 3 − 158

F72
P72

AHEX
PAHEX

ASCII code → Hexadecimal data . . . . . . . . . . . . . . . . . . . . . . . . 3 − 161

F73
P73

BCDA
PBCDA


BCD data →ASCII code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 165

F74
P74

ABCD
PABCD

ASCII code → BCD data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 169

F75
P75

BINA
PBINA

16-bit binary data → ASCII code . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 173

F76
P76

ABIN
PABIN

ASCII code → 16-bit binary data . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 177

F77
P77


DBIA
PDBIA

32-bit binary data → ASCII code . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 180

F78
P78

DABI
PDABI

ASCII code → 32-bit binary data . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 183

F80
P80

BCD
PBCD

16-bit binary data → 4-digit BCD data . . . . . . . . . . . . . . . . . . . . 3 − 186

F81
P81

BIN
PBIN

4-digit BCD data → 16-bit binary data . . . . . . . . . . . . . . . . . . . . 3 − 188

F82

P82

DBCD
PDBCD

32-bit binary data → 8-digit BCD data . . . . . . . . . . . . . . . . . . . . 3 − 190

F83
P83

DBIN
PDBIN

8-digit BCD data → 32-bit binary data . . . . . . . . . . . . . . . . . . . . 3 − 192

F84
P84

INV
PINV

16-bit data invert . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 193

F85
P85

NEG
PNEG

16-bit data complement of 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 194


F86
P86

DNEG
PDNEG

32-bit data complement of 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 196

F87
P87

ABS
PABS

16-bit data absolute value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 198

F88
P88

DABS
PDABS

32-bit data absolute value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 199

xi
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Table of Contents


F89
P89

EXT
PEXT

16-bit data sign extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 200

F90
P90

DECO
PDECO

Decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 202

F91
P91

SEGT
PSEGT

7-segment decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 206

F92
P92

ENCO
PENCO


Encode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 208

F93
P93

UNIT
PUNIT

16-bit data combine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 212

F94
P94

DIST
PDIST

16-bit data distribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 214

F95
P95

ASC
PASC

Character → ASCII code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 216

F96
P96


SRC
PSRC

16-bit data search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 220

F97
P97

DSRC
PDSRC

32-bit data search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 222

Data shift instructions
F98
P98

CMPR
PCMPR

Data table shift-out and compress . . . . . . . . . . . . . . . . . . . . . . . . 3 − 224

F99
P99

CMPW
PCMPW

Data table shift-in and compress . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 227


F100
P100

SHR
PSHR

Right shift of multiple bits (n bits) in a 16-bit data . . . . . . . . . . . 3 − 230

F101
P101

SHL
PSHL

Left shift of multiple bits (n bits) in a 16-bit data . . . . . . . . . . . . 3 − 232

F102
P102

DSHR
PDSHR

Right shift of n bits in a 32-bit data . . . . . . . . . . . . . . . . . . . . . . . 3 − 234

F103
P103

DSHL
PDSHL


Left shift of n bits in a 32-bit data . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 236

F105
P105

BSR
PBSR

Right shift of one hexadecimal digit (4 bits) . . . . . . . . . . . . . . . . 3 − 238

F106
P106

BSL
PBSL

Left shift of one hexadecimal digit (4 bits) . . . . . . . . . . . . . . . . . 3 − 240

F108
P108

BITR
PBITR

Right shift of multiple bits of 16−bit data range . . . . . . . . . . . . . 3 − 242

F109
P109

BITL

PBITL

Left shift of multiple bits of 16−bit data range . . . . . . . . . . . . . . 3 − 244

F110
P110

WSHR
PWSHR

Right shift of one word (16 bits) of 16−bit data range . . . . . . . . 3 − 246

F111
P111

WSHL
PWSHL

Left shift of one word (16 bits) of 16−bit data range . . . . . . . . . 3 − 248

F112
P112

WBSR
PWBSR

Right shift of one hexadecimal digit (4-bit) of 16−bit data range 3 − 250

xii
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:



Table of Contents

F113
P113

WBSL
PWBSL

Left shift of one hexadecimal digit (4-bit) of 16−bit data range 3 − 252

FIFO instructions
F115
P115

FIFT
PFIFT

FIFO buffer definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 254

F116
P116

FIFR
PFIFR

Data read from FIFO buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 256

F117

P117

FIFW
PFIFW

Data write to FIFO buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 260

Basic function instructions
F118

UDC

UP/DOWN counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 267

F119

LRSR

Left/right shift register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 270

Data rotate instructions
F120
P120

ROR
PROR

16-bit data right rotation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 274

F121

P121

ROL
PROL

16-bit data left rotation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 276

F122
P122

RCR
PRCR

16-bit data right rotation with carry flag data . . . . . . . . . . . . . . . 3 − 278

F123
P123

RCL
PRCL

16-bit data left rotation with carry flag data . . . . . . . . . . . . . . . . 3 − 280

F125
P125

DROR
PDROR

32-bit data right rotation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 282


F126
P126

DROL
PDROL

32-bit data left rotation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 284

F127
P127

DRCR
PDRCR

32-bit data right rotation with carry flag data . . . . . . . . . . . . . . . 3 − 286

F128
P128

DRCL
PDRCL

32-bit data left rotation with carry flag data . . . . . . . . . . . . . . . . 3 − 288

Bit manipulation instructions
F130
P130

BTS

PBTS

16-bit data bit set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 290

F131
P131

BTR
PBTR

16-bit data bit reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 292

F132
P132

BTI
PBTI

16-bit data bit invert . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 294

F133
P133

BTT
PBTT

16-bit data bit test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 296

F135
P135


BCU
PBCU

Number of on (1) bits in 16-bit data . . . . . . . . . . . . . . . . . . . . . . . 3 − 298

xiii
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Table of Contents

F136
P136

DBCU
PDBCU

Number of on (1) bits in 32-bit data . . . . . . . . . . . . . . . . . . . . . . . 3 − 300

Basic function instruction
F137

STMR

Auxiliary timer (16−bit) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 302

Special instructions
F138
P138


HMSS
PHMSS

Hours, minutes, and seconds data to seconds data . . . . . . . . . 3 − 305

F139
P139

SHMS
PSHMS

Seconds data to hours, minutes, and seconds data . . . . . . . . . 3 − 307

F140
P140

STC
PSTC

Carry flag (R9009) set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 310

F141
P141

CLC
PCLC

Carry flag (R9009) reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 311


F142
P142

WDT
PWDT

Watching dog timer update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 312

F143

IORF

Partial I/O update for FP0/FP0R/FP−e/FPΣ/FP−X . . . . . . . . . 3 − 314

F143
P143

IORF
PIORF

Partial I/O update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 316

F144

TRNS

Serial data communication
for FP0/FP−e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 318
for FP2/FP2SH/FP10SH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 325


F145
P145

SEND
PSEND

Data send (For MEWTOCOL master mode) . . . . . . . . . . . . . . . 3 − 335
Data send (For MODBUS master/MODBUS master mode) 3 − 339
Data send (MEWNET link) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 350

F146
P146

RECV
PRECV

Data receive (For MEWTOCOL master mode) . . . . . . . . . . . . . 3 − 360
Data receive (For MODBUS master/MODBUS master mode) 3 − 364
Data receive (MEWNET link) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 376

F147

PR

Printout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 386

F148
P148

ERR

PERR

Self-diagnostic error set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 390

F149
P149

MSG
PMSG

Message display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 392

F150
P150

READ
PREAD

Data read from intelligent unit . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 395

F151
P151

WRT
PWRT

Data write into intelligent unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 398

F152
P152


RMRD
PRMRD

Data read from MEWNET-F slave station . . . . . . . . . . . . . . . . . 3 − 401

F153
P153

RMWT
PRMWT

Data write into MEWNET-F slave station . . . . . . . . . . . . . . . . . . 3 − 405

F155
P155

SMPL
PSMPL

Sampling start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 409

F156
P156

STRG
PSTRG

Sampling stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 411


xiv
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Table of Contents

F157
P157

CADD
PCADD

Time addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 413

F158
P158

CSUB
PCSUB

Time substruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 416

F159
P159

MTRN
PMTRN

Serial data communication
for FPΣ/FP−X/FP0R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 420

for FP2/FP2SH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 428

F161
P161

MRCV
PMRCV

Serial data reception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 432

BIN arithmetic instructions
F160
P160

DSQR
PDSQR

32-bit data square root . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 435

Special instructions (High−speed counter instructions)
F0

MV

High−speed counter control for FP0/FP0R/FPΣ/FP−X . . . . . . 3 − 437
Pulse output control for FP0/FP0R/FP−e/FPΣ/FP−X . . . . . . . 3 − 443

F1

DMV


Writing and reading the high−speed counter and pulse output
elapsed value for FP0/FP0R/FP−e/FPΣ/FP−X . . . . . . . . . . . . . 3 − 449

F165

CAM0

Cam control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 454

F166

HC1S

Target value match on (with channel specification) . . . . . . . . ****

F166

HC1S

Target value match on (High−speed counter control) . . . . . . . . 3 − 464

F166

HC1S

Target value match on (Pulse output control) . . . . . . . . . . . . . . 3 − 467

F167


HC1R

Target value match off (with channel specification) . . . . . . . . ****

F167

HC1R

Target value match off (High−speed counter control) . . . . . . . . 3 − 473

F167

HC1R

Target value match off (Pulse output control) . . . . . . . . . . . . . . 3 − 476

F168

SPD1

Positioning control (trapezoidal control) . . . . . . . . . . . . . . . . . . . 3 − 479
Positioning control (home position return) . . . . . . . . . . . . . . . . . 3 − 483

F169

PLS

Pulse output (with channel specification)(JOG operation) . . . . 3 − 488

F170


PWM

PWM output (with channel specification) . . . . . . . . . . . . . . . . . . 3 − 491

F171

SPDH

Pulse output (with channel specification)
(trapezoidal control) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 493
(home position return) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 498

F171

SPDH

Pulse output (trapezoidal control) . . . . . . . . . . . . . . . . . . . . . . . . 3 − 504
Pulse output (JOG positioning type 0) . . . . . . . . . . . . . . . . . . . . . 3 − 511
Pulse output (JOG positioning type 1) . . . . . . . . . . . . . . . . . . . . 3 − 516

F172

PLSH

Pulse output (with channel specification)(JOG operation) . . . . 3 − 521

F172

PLSH


Double word compare: Start equal Pulse output
(JOG operation type 0 and 1) . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 525

F173

PWMH

PWM output (with channel specification) . . . . . . . . . . . . . . . . . ****

F174

SP0H

Pulse output (with channel specification)
(Selectable data table control operation) . . . . . . . . . . . . . . . . . 3 − 533

F174

SP0H

Pulse output (Arbiterary data table control operation) . . . . . . . 3 − 538
xv

Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Table of Contents

F175


SPSH

Pulse output (Linear interpolation) . . . . . . . . . . . . . . . . . . . . . . . 3 − 542

F175

SPSH

Pulse output (Linear interpolation) . . . . . . . . . . . . . . . . . . . . . . . 3 − 548

F176

SPCH

Pulse output (Circular interpolation) . . . . . . . . . . . . . . . . . . . . . . 3 − 553

Screen display instructions
F177

HOME

Pulse output (Home return) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 557

F178

PLSM

Input pulse measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 561


F180

SCR

FP−e screen display registration . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 565

F181

DSP

FP−e screen display switching . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 568

F182

FILTR

Time constant processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 569

Basic function instruction
F183

DSTM

Auxiliary timer (32-bit) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 571

Data transfer instructions
F190
P190

MV3

PMV3

Three 16-bit data move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 575

F191
P191

DMV3
PDMV3

Three 32-bit data move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 577

Logic operation instructions
F215
P215

DAND
PDAND

32-bit data AND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 579

F216
P216

DOR
PDOR

32-bit data OR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 581

F217

P217

DXOR
PDXOR

32-bit data XOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 583

F218
P218

DXNR
PDXNR

32-bit data XNR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 585

F219
P219

DUNI
PDUNI

32-bit data unites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 587

F230
P230

TMSEC
PTMSEC

Time data


F231
P231

SECTM
PSECTM

Second

Second conversion . . . . . . . . . . . . . . . . . . . . . . . . 3 − 589
Time data conversion . . . . . . . . . . . . . . . . . . . . . . . . 3 − 591

Data conversion instructions
F235
P235

GRY
PGRY

16−bit data → Gray code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 593

F236
P236

DGRY
PDGRY

32−bit data → Gray code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 594

F237

P237

GBIN
PGBIN

16−bit Gray code → 16−bit binary data . . . . . . . . . . . . . . . . . . . 3 − 595

xvi
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Table of Contents

F238
P238

DGBIN
PDGBIN

32−bit Gray code → 32−bit binary data . . . . . . . . . . . . . . . . . . . . 3 − 596

F240
P240

COLM
PCOLM

Bit line to bit column conversion . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 599

F241

P241

LINE
PLINE

Bit column to bit line conversion . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 601

F250

BTOA

Binary → ASCII conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 603

F251

ATOB

ASCII → Binary conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 608

F252

ACHK

ASCII data check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 613

Character string instructions
F257
P257

SCMP

PSCMP

Comparing character strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 617

F258
P258

SADD
PSADD

Character string coupling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 619

F259
P259

LEN
PLEN

Number of characters in a character string . . . . . . . . . . . . . . . . 3 − 621

F260
P260

SSRC
PSSRC

Search for character string . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 623

F261
P261


RIGHT
PRIGHT

Retrieving data from character strings (right side) . . . . . . . . . . 3 − 625

F262
P262

LEFT
PLEFT

Retrieving data from character strings (left side) . . . . . . . . . . . 3 − 627

F263
P263

MIDR
PMIDR

Retrieving a character string from a character string . . . . . . . . 3 − 629

F264
P264

MIDW
PMIDW

Writing a character string to a character string . . . . . . . . . . . . . 3 − 631


F265
P265

SREP
PSREP

Replacing character strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 633

Integer type data processing instructions
F270
P270

MAX
PMAX

Maximum value search in 16-bit data table . . . . . . . . . . . . . . . . 3 − 635

F271
P271

DMAX
PDMAX

Maximum value search in 32-bit data table . . . . . . . . . . . . . . . . 3 − 637

F272
P272

MIN
PMIN


Minimum value search in 16-bit data table . . . . . . . . . . . . . . . . . 3 − 639

F273
P273

DMIN
PDMIN

Minimum value search in 32-bit data table . . . . . . . . . . . . . . . . . 3 − 641

F275
P275

MEAN
PMEAN

Total and mean numbers calculation in 16-bit data table . . . . . 3 − 643

F276
P276

DMEAN
PDMEAN

Total and mean numbers calculation in 32-bit data table . . . . . 3 − 645

F277
P277


SORT
PSORT

Sort data in 16-bit data table . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 647

xvii
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Table of Contents

F278
P278

DSORT
PDSORT

Sort data in 32-bit data table . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 649

F282
P282

SCAL
PSCAL

Scaling of 16-bit data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 651

F283
P283


DSCAL
PDSCAL

Scaling of 32-bit data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 653

F284

RAMP

Inclination output of 16−bit data . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 655

Integer type non-linear function instructions
F285
P285

LIMT
PLIMT

16-bit data upper and lower limit control . . . . . . . . . . . . . . . . . . . 3 − 657

F286
P286

DLIMT
PDLIMT

32-bit data upper and lower limit control . . . . . . . . . . . . . . . . . . . 3 − 659

F287
P287


BAND
PBAND

16-bit data deadband control . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 661

F288
P288

DBAND
PDBAND

32-bit data deadband control . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 663

F289
P289

ZONE
PZONE

16-bit data zone control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 665

F290
P290

DZONE
PDZONE

32-bit data zone control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 667


BCD type real number operation instructions
F300
P300

BSIN
PBSIN

BCD type Sine operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 669

F301
P301

BCOS
PBCOS

BCD type Cosine operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 671

F302
P302

BTAN
PBTAN

BCD type Tangent operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 673

F303
P303

BASIN
PBASIN


BCD type Arcsine operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 675

F304
P304

BACOS
PBACOS

BCD type Arccosine operation . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 677

F305
P305

BATAN
PBATAN

BCD type Arctangent operation . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 679

Floating point type real number operation instructions (for FP2/FP2SH/FP10SH)
F309
P309

FMV
PFMV

Floating point data move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 681

F310
P310


F+
PF+

Floating point data addition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 683

F311
P311

F−
PF−

Floating point data subtraction . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 685

F312
P312

F*
PF*

Floating point data multiplication . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 687

xviii
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Table of Contents

F313
P313


F%
PF%

Floating point data division . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 689

F314
P314

SIN
PSIN

Floating point data Sine operation . . . . . . . . . . . . . . . . . . . . . . . . 3 − 691

F315
P315

COS
PCOS

Floating point data Cosine operation . . . . . . . . . . . . . . . . . . . . . 3 − 693

F316
P316

TAN
PTAN

Floating point data Tangent operation . . . . . . . . . . . . . . . . . . . . . 3 − 695


F317
P317

ASIN
PASIN

Floating point data Arcsine operation . . . . . . . . . . . . . . . . . . . . . 3 − 697

F318
P318

ACOS
PACOS

Floating point data Arccosine operation . . . . . . . . . . . . . . . . . . . 3 − 699

F319
P319

ATAN
PATAN

Floating point data Arctangent operation . . . . . . . . . . . . . . . . . . 3 − 701

F320
P320

LN
PLN


Floating point data natural logarithm . . . . . . . . . . . . . . . . . . . . . . 3 − 703

F321
P321

EXP
PEXP

Floating point data exponent . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 705

F322
P322

LOG
PLOG

Floating point data logarithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 707

F323
P323

PWR
PPWR

Floating point data power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 709

F324
P324

FSQR

PFSQR

Floating point data square root . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 711

F325
P325

FLT
PFLT

16-bit integer data → Floating point real number data . . . . . . . 3 − 713

F326
P326

DFLT
PDFLT

32-bit integer data → Floating point real number data . . . . . . . 3 − 715

F327
P327

INT
PINT

Floating point real number data →16-bit integer data (largest
integer not exceeding the floating point real number data) . . . 3 − 717

F328

P328

DINT
PDINT

Floating point real number data → 32-bit integer data (largest
integer not exceeding the floating point real number data) . . 3 − 719

F329
P329

FIX
PFIX

Floating point real number data →16-bit integer data
(rounding the first decimal point down to integer) . . . . . . . . . . . 3 − 721

F330
P330

DFIX
PDFIX

Floating point real number data →32-bit integer data
(rounding the first decimal point down to integer) . . . . . . . . . . . 3 − 723

F331
P331

ROFF

PROFF

Floating point real number data →16-bit integer data
(rounding the first decimal point off to integer) . . . . . . . . . . . . . 3 − 725

F332
P332

DROFF
PDROFF

Floating point real number data →32-bit integer data
(rounding the first decimal point off to integer) . . . . . . . . . . . . . 3 − 727

F333
P333

FINT
PFINT

Floating point real number data rounding the first decimal
point down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 729

F334
P334

FRINT
PFRINT

Floating point real number data rounding the first decimal

point off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 731

F335
P335

F+/−
PF+/−

Floating point real number data sign changes . . . . . . . . . . . . . . 3 − 733

xix
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Table of Contents

F336
P336

FABS
PFABS

Floating point real number data absolute . . . . . . . . . . . . . . . . . . 3 − 735

F337
P337

RAD
PRAD


Floating point real number data conversion of angle units
(Degrees → Radians) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 737

F338
P338

DEG
PDEG

Floating point real number data conversion of angle units
(Radians → Degrees) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 739

Floating point type real number data processing instructions
F345
P345

FCMP
PFCMP

Floating point real number data comparison . . . . . . . . . . . . . . . 3 − 741

F346
P346

FWIN
PFWIN

Floating point real number data band comparison . . . . . . . . . . 3 − 743

F347

P347

FLIMT
PFLIMT

Floating point data upper and lower limit control
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 745

F348
P348

FBAND
PFBAND

Floating point real number data deadband control . . . . . . . . . . 3 − 747

F349
P349

FZONE
PFZONE

Floating point real number data zone control . . . . . . . . . . . . . . 3 − 749

F350
P350

FMAX
PFMAX


Maximum value search in floating point real number data
table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 751

F351
P351

FMIN
PFMIN

Minimum value search in floating point real number data
table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 753

F352
P352

FMEAN
PFMEAN

Total and mean numbers calculation in floating point real
number data table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 755

F353
P353

FSORT
PFSORT

Sort data in real number floating point data table . . . . . . . . . . . 3 − 757

F354

P354

FSCAL
PFSCAL

Scaling of real number data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 759

Time series processing instruction
F355

PID

PID processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 761

F356

EZPID

Easy PID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 768

Compare instructions
F373
P373

DTR
PDTR

16-bit data revision detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 776

F374

P374

DDTR
PDDTR

32-bit data revision detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 − 778

Index register bank processing instructions
F410
P410

SETB
PSETB

Setting the index register bank number . . . . . . . . . . . . . . . . . . . 3 − 780

F411
P411

CHGB
PCHGB

Changing the index register bank number . . . . . . . . . . . . . . . . . 3 − 782

xx
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Table of Contents


F412
P412

POPB
PPOPB

Restoring the index register bank number . . . . . . . . . . . . . . . . . 3 − 784

File register bank processing instructions
F414
P414

SBFL
PSBFL

Setting the file register bank number . . . . . . . . . . . . . . . . . . . . . 3 − 785

F415
P415

CBFL
PCBFL

Changing the file register bank number . . . . . . . . . . . . . . . . . . . 3 − 786

F416
P416

PBFL
PPBFL


Restoring the file register bank number . . . . . . . . . . . . . . . . . . . 3 − 787

xxi
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Chapter 1
Relays, Memory Areas and Constants

Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email:


Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Tải bản đầy đủ ngay
×