Chapter 6 Instruction Details
XBC E-Type Main Unit 6-97 Ve r. 1
6.19.7 GBMOV, GBMOVP
Instruction
Step
P M K F L T C S Z D.x
U N D R
GBMOV(P)
4~7 O - -
Area Number data is saved in
Format to execute GBMOV(P)
Number to execute GBMOV(P) (0 ~ 32,767)
[Flag Set]
Error
To be set, if Z’s range exceeds specified area. Applicable instruction result is
not processed.
To be set, if N’s range exceeds specified area.
F110
1) GBMOV (Group Bit Move)
(1) Transmits N words from S’s data to starting D in regular order in group by Z’s format.
(2) If Z is h130A, it transmits S’s 10-bit data from the No.1 bit to D’s No.3 bit in regular order in group.
(3) If area is exceeded while executing, set Error Flag.
2) Program Example
(1) In case of D10000=h2408 and P1200=4 which is saved , If Input contact P00000 is on, GBMOV instruction
will be executed.
(2) This example shows the group bit transmission. The transmitted data are sequentially saved in the 8-bit
data area of P1100 and bit 4 of P1100 receives bit 2 (b02) of P1000 first. 4 word data in the range of P1000
to P1003 are moved to the range of P1100 to P1103 area in the same method.
GBMOV P1000 P1100 D10000 P1200
P00000
0 0 0 1 0 0 1 1 0 0 0 0 0 1 0 0
b0b15 b8
S’s start bit D’s start bit
Transmission number (Hex.: 10->h0A)
[Z’s format]
h130A