Bosch 6000 User's Guide Page 132

  • Download
  • Add to my manuals
  • Print
  • Page
    / 268
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 131
Chapter 3. Basic Operation Setup
117
Output Status
As shown below, you can use the OUTFNC command to determine the current function and
state (on or off) of one or all the outputs. The TOUT command also reports the outputs' state,
but in a binary format (see bit pattern table on page 107). The TSTAT command also reports
the outputs' functions (by letter designator) and their current state (see page 232).
Code
Examples
Command Response
OUTFNC........... Query the status of all outputs:
*OUTFNC1-A PROGRAMMABLE OUTPUT - STATUS OFF
*OUTFNC2-F FAULT OUTPUT - STATUS OFF
(response continues until all programmable outputs are reported)
OUTFNC1 ......... Query the assigned function and current status of output #1:
*OUTFNC1-A PROGRAMMABLE OUTPUT - STATUS OFF
OUTFNC1-C...... Change output #1 to function as a
Program in Progress
output
OUTFNC1 ......... Query the status of output #1; response should be now be:
*OUTFNC1-C PROGRAM IN PROGRESS OUTPUT - STATUS OFF
TOUT .............. Query binary status report of all outputs (for AT6400):
*TOUT0000_0000_0000_0000_0000_0000_0000
Programmable
Output
(OUTFNCi-A)
The default function for the outputs is Programmable. As such, the output is used as a
standard output, turning it on or off with the OUT or OUTALL commands to affect processes
external to the controller. To view the state of the outputs, use the TOUT command. To use
the state of the outputs as a basis for conditional branching or looping statements (IF,
REPEAT, WHILE, etc.), use the [ OUT ] command (refer to the Conditional Looping and
Branching section, page 25, for details).
Moving/
Not Moving
(In Position)
(OUTFNCi-<a>B)
When assigned the Moving/Not Moving function, the output will activate when the axis is
commanded to move. As soon as the move is completed, the output will change to the
opposite state.
If the target zone mode is enabled (STRGTE1), the output will not change state until the move
completion criteria set with the STRGTD and STRGTV commands has been met. (For more
information, refer to the Target Zone section on page 105, or refer to the Servo Tuner User
Guide.) In this manner, the Moving/Not Moving output functions as an In Position output.
Example
The code example below defines output 1 and output 2 as Programmable outputs and output 3
as a Moving/Not Moving output. Before the motor moves 4,000 steps, output 1 turns on and
output 2 turns off. These outputs remain in this state until the move is completed, then output
1 turns off and output 2 turns on. While the motor/load is moving, output 3 remains on.
SCALE0 ; Disable scaling
MC0 ; Sets axis 1 to preset positioning mode
MA0 ; Select incremental positioning mode
A10 ; Sets axis 1 acceleration to 10
V5 ; Sets axis 1 velocity to 5
D4000 ; Sets axis 1 distance to 4,000 steps
OUTFEN1 ; Enable output functions
OUTFNC1-A ; Sets output 1 as a programmable output
OUTFNC2-A ; Sets output 2 as a programmable output
OUTFNC3-1B ; Sets output 3 as a axis 1 Moving/Not Moving output
OUT10 ; Turns output 1 on and output 2 off
GO1 ; Initiates axis 1 move
OUT01 ; Turns output 1 off and output 2 on
Page view 131
1 2 ... 127 128 129 130 131 132 133 134 135 136 137 ... 267 268

Comments to this Manuals

No comments