EasyManua.ls Logo

LS Industrial Systems XBC-E Series - Page 224

LS Industrial Systems XBC-E Series
542 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Instruction Details
XBC E-Type Main Unit 6-107 Ve r. 1
6.20.5 GBCD, GBCDP
Instruction
Area Available
Step
Flag
P M K F L T C S Z D.x
R.x
Co
nst.
U N D R
Error
(F110)
Zero
(F111)
Carry
(F112)
GBCD(P)
S
O
O
O
O
O
O
O
-
-
-
-
O
O
O
O
O
4~6 O - -
D
O
O
O
-
O
O
O
-
-
-
-
-
O
O
O
O
N
O
O
O
-
O
O
O
-
-
-
-
O
O
O
O
O
Operand
Description
Data Type
S
Data to convert to BCD or Device number data is saved in
WORD
D
Device number to save BCD data converted
WORD
N
Total number of data to convert to BCD
WORD
[Flag Set]
Flag
Description
Device Number
Error
If one value among N data is other than 0~9999(h270F)
If N’s range exceeds specified area
F110
1) GBCD (Group Binary Coded Decimal)
(1) Converts specified S word data of N BIN value to BCD and saves respectively in starting D in regular
order.
(2) It converts N BIN data ‘0~9999’ from specified S device to GBCD and saves in starting D 1:1.
(3) Error Flag (F110) will be set if specified Ds N value from S is other than "0~9999".
2) Program Example
(1) If Input signal P00000 is On, 5 word data from P1000~P1004 is Group BCD converted respectively, and
saved in P1100~P1104 area.
GBCD P1000 P1100 5
P00000
Remark
1) In Basic Parameter with ‘Continue running when an arithmetic error occurs’, if 1 value among N
data is other than 0~9999, other data will not be converted to BCD nor operated.
GBCD
GBCDP
S
D
GBCDP
GBCD
S
D
N
N

Table of Contents

Related product manuals