EasyManua.ls Logo

Galil Motion Control DMC-4123 - Digital Inputs

Galil Motion Control DMC-4123
237 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
The output port is useful for setting relays or controlling external switches and events during a motion sequence.
Example - Turn on output after move
Instruction Interpretation
#OUTPUT
Label
PR 2000
Position Command
BG
Begin
AM
After move
SB1
Set Output 1
WT 1000
Wait 1000 msec
CB1
Clear Output 1
EN
End
Digital Inputs
The general digital inputs for are accessed by using the @IN[n] function or the TI command. The @IN[n] function
returns the logic level of the specified input, n, where n is a number 1 through 16.
Example - Using Inputs to control program flow
Instruction Interpretation
JP #A,@IN[1]=0
Jump to A if input 1 is low
JP #B,@IN[2]=1
Jump to B if input 2 is high
AI 7
Wait until input 7 is high
AI -6
Wait until input 6 is low
Example - Start Motion on Switch
Motor A must turn at 4000 counts/sec when the user flips a panel switch to on. When panel switch is turned to off
position, motor A must stop turning.
Solution: Connect panel switch to input 1 of DMC-41x3. High on input 1 means switch is in on position.
Instruction Interpretation
#S;JG 4000
Set speed
AI 1;BGA
Begin after input 1 goes high
AI -1;STA
Stop after input 1 goes low
AMA;JP #S
After motion, repeat
EN
The Auxiliary Encoder Inputs
The auxiliary encoder inputs can be used for general use. For each axis, the controller has one auxiliary encoder
and each auxiliary encoder consists of two inputs, channel A and channel B. The auxiliary encoder inputs are
mapped to the inputs 81-96.
Each input from the auxiliary encoder is a differential line receiver and can accept voltage levels between ±12
volts. The inputs have been configured to accept TTL level signals. To connect TTL signals, simply connect the
signal to the + input and leave the - input disconnected. For other signal levels, the - input should be connected to
a voltage that is ½ of the full voltage range (for example, connect the - input to 5 volts if the signal is a 0 - 12 volt
logic).
Example:
A DMC-4113 has one auxiliary encoder. This encoder has two inputs (channel A and channel B). Channel A input is
mapped to input 81 and Channel B input is mapped to input 82. To use this input for 2 TTL signals, the first signal
Chapter 7 Application Programming ▫ 136 DMC-41x3 User Manual

Table of Contents

Related product manuals