MM4006
TG To g g l e I/O output bits
Usage
■
IMM
■
l'GM
■
MIP
Syntax x x T G n n
Parameters
Description x x [int]
I
/
O
bit number.
nn [int]
I
/
O
bit mask.
Range x x
0
to 8.
nn
0
to 255.
Units x x
N
o
n
e
.
xx
N
o
n
e
.
Defaults x x M i s s i n g : 0 .
Out of range: Error E.
Floating point: Error A.
nn M i s s i n g : 255.
Out of range: Error C.
Floating point: Decimal part truncated.
Description T h i s command toggles one to all output bits of the I/O port. If xx is speci-
fied between 1 and 8, the nn mask must be missing and then the selected
bit will be inverted.
If xx is missing or set to 0 and nn is between 1 and 255, the controller will
toggle all bits corresponding to the mask. For example, if nn is 140, the
equivalent binary mask is 10001100 which means that I/O output bits num-
ber 3, 4 and 8 will be inverted (remember that I/O bits are numbered from 1
to 8).
If xx is missing or set to 0 and nn is not specified, the controller toggles all
8 bits. This is equivalent to setting xx to 0 and nn to 255.
Returns N o n e .
Errors
A — U n k n o w n message code.
E — I n c o r r e c t I/O channel number.
Rel. Commands C B
— C l e a r I/O outputs bits.
RO
— R e a d I/O output.
SB — S e t I/O output bits.
SO — S e t I/O output byte.
Example
O R O I R e a d all 8 bits of the I/O output port.
OR0209 I Controller returns 209, which converted to binary means:
bit 8 b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1
1
1
0
1
0
0
0
1
TG224
I To g g l e bits number 6, 7 and 8 of the I/O output port.
ORO I R e a d all 8 bits of the I/O output port.
ORO49 I Controller returns 49, which converted to binary means:
bit 8 b i t
7
b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1
0
0
1
1
0
0
0
1
( )
N e v v p o r t .
3
.
1
4
5
E
D
H
0
1
8
1
E
n 1020 — 03/03
Summary of Contents for MM4006
Page 9: ...F D110181En1020 03 03 b J e w p o r t...
Page 11: ...MM4006 8 Axis Motion Controller Driver evvport...
Page 41: ...MM4006 Introduction FPI 111181Eli11120 0 1 03 1 3O tNevvport...
Page 42: ...Section 2 Local Mode C Newport...
Page 43: ...MM4006 8 Axis Motion Controller Driver C N e w p o r t...
Page 96: ...Section 3 Remote Mode C klevvport...
Page 97: ...Newport...
Page 310: ...Section 4 Motion Control Tutorial Ilevvport...
Page 311: ...MM4006 8 Axis Motion Controller Driver C EDI10181En 1020 03 03 2 N e V V p O r t...
Page 313: ...MM4006 8 Axis Motion Controller Driver cv ED110181E01020 03 03 4 2 M e v v p o r t...
Page 334: ...Section 5 Trajectory Functions Tutorial Newport...
Page 335: ...MM4006 8 Axis Motion Controller Driver C Newport...
Page 337: ...MM4006 8 Axis Motion Controller Driver EDH0181En1020 03 03 5 2 N e w p o r t...
Page 346: ...Section 6 Feature Descriptions Tutorial Newport...
Page 347: ...MM4006 8 Axis Motion Controller Driver C Nevvport...
Page 349: ...MM4006 8 Axis Motion Controller Driver ED11018lEn I 020 03 03 6 2 N e v v p O r t...
Page 359: ...MM4006 F e a t u r e Descriptions Tutorial cv EDI10181En1020 03 03 6 12 N e w p o r t...
Page 360: ...Section 7 Servo Tuning rano at 1 2 2 p EOF 110 1 0 0 0 0 0 ill fpL4 cv Newport...
Page 361: ...MM4006 8 Axis Motion Controller Driver C Nevvport...
Page 363: ...MM4006 8 Axis Motion Controller Driver EDH0181En 1020 03 03 7 2...
Page 368: ...Section 8 Appendices INevvport...
Page 369: ...MM4006 8 Axis Motion Controller Driver CkJ Newport...
Page 371: ...MM4006 8 Axis Motion Controller Driver EDI10181EnI020 03 03 8 2 N e v v p o r t...
Page 410: ...A7 h7s z c 7...