Chapter 7 - Programming with Serial Communication
123
Serial Immediate Status Commands
Note: All but the S and K commands require an address.
Command Command Description and Application Examples
Syntax
OS
Tell Output States
Returns the current state (on or off) of the 8 inputs.
The status is returned as a four digit hexadecimal
number, preceded by an asterisk. The least signifi-
cant digit represents the binary value of inputs 4-1.
Example: IS returns *00F6<cr> with the input condi-
tions shown in this table.
Your computer program will have to decode the
hexadecimal number to determine the state of
any each input.
<n>IS
PA
Tell Absolute Position
Reports current position in user units based on
encoder mode selected. Can report specifically com-
manded or encoder position when PAa,n is used.
a = Commanded Position
E (Encoder Position)
i = 1-2 axis
Examples:
PA2
Returns axis #2 position
PAC,1 Returns axis #1 commanded
position
Since B8961/2 is always servo-closed loop,
no difference between commanded and encoder
position
<n>PAn
<n>PAa,i
RS
Reset System
Re-initializes, or warm boots, the control software to
its power-up state. The initialization process takes
about 10 seconds to complete. Programs and config-
uration settings are
not
erased. This command is the
equivalent of cycling power.
<n>RS
S
Stop
Terminates program execution and immediately
decelerates each motor to a halt (at a rate set by the
SR command). Functions the same as pressing the
ESC key on the IDC keypad or activating an input
defined as a Stop input.
<n>S
n/a
inputs
16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
off off off off off off off off off on on on off on on off
0
0
F
6
Содержание B8962
Страница 111: ...109 Chapter 7 Programming with Serial Communication...
Страница 132: ...B8961 and B8962 User Manual 130...
Страница 136: ...B8961 and B8962 User Manual 134 B8961 and B8962 Hardware Connections...
Страница 137: ...135 Chapter 8 Hardware Reference B8961 and B8962 Input and Output Schematics...
Страница 138: ...B8961 and B8962 User Manual 136 Connecting IDC Limit Switches to the B8961 2...
Страница 156: ...B8961 and B8962 User Manual 154...