Chapter 6 Instruction Details
XBC E-Type Main Unit 6-108 Ve r. 1
6.20.6 GBIN, GBINP
Instruction
Step
P M K F L T C S Z D.x
R.x
U N D R
GBIN(P)
4~6 O - -
BCD Data to convert to BIN or Device number data is saved in
Device number to save BIN data converted
Total number of data to convert to BIN
[Flag Set]
Error
If one value among N data is other than BCD 0~9999.
To be set if N’s range exceeds specified area
F110
1) GBIN (Group Binary)
(1) Converts specified S word data of N BCD value to BIN and saves respectively in starting D in regular
order.
(2) Converts specified S device’s BCD data (h0~h9999) to GBIN as many as specified N and saves in D.
(3) Error Flag (F110) will be set if OP1’s value is other than BCD format (h0~h9999).
2) Program Example
(1) If Input signal P00000 is On, 5 word BCD data from P1000 to P1004 is Group BCD respectively converted
and saved in from P1100 to P1104 area.
Remark
1) In Basic Parameter with ‘Continue running when an arithmetic error occurs’, if any value among
specified S’s N datas is other than BCD format, all the n data will not be operated.