Digital Inputs - Galil Motion Control DMC-14 5 Series Manual

Table of Contents

Advertisement

OB 3, @IN [1]&@IN [2]
OB 2, COUNT [1]
The output port can be set by specifying an 3-bit word using the instruction OP (Output Port). This
instruction allows a single command to define the state of the entire 3-bit output port, where 2 0 is
output 1, 2 1 is output 2 and so on. A 1 designates that the output is on.
For example:
Instruction
OP6
OP0
OP 7
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
#OUTPUT
PR 2000
BG
AM
SB1
WT 1000
CB1
EN

Digital Inputs

The DMC-1415 and DMC-1416 has seven digital inputs for controlling motion by local switches,
while the DMC-1425 has 3 digital inputs. The @IN[n] function returns the logic level of the specified
input 1 through 8.
For example, a Jump on Condition instruction can be used to execute a sequence if a high condition is
noted on an input 3. To halt program execution, the After Input (AI) instruction waits until the
specified input has occurred.
Example:
JP #A,@IN[1]=0
JP #B,@IN[2]=1
AI 7
AI -6
Example - Start Motion on Switch
Motor X must turn at 4000 counts/sec when the user flips a panel switch to on. When panel switch is
turned to off position, motor X must stop turning.
Solution: Connect panel switch to input 1 of DMC-14XX. High on input 1 means switch is in on
position.
Instruction
#S;JG 4000
124
Chapter 7 Application Programming
i
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Set Output 3 only if Input 1 and Input 2 are high.
Set Output 2 if element 1 in the array COUNT is non-zero.
Interpretation
Sets outputs 2 and 3 of output port to high. All other bits are 0. (2 1 + 2 2 = 6)
Clears all bits of output port to zero
Sets all bits of output port to one.
(2 0 + 2 1 + 2 2 )
Interpretation
Label
Position Command
Begin
After move
Set Output 1
Wait 1000 msec
Clear Output 1
End
Jump to A if input 1 is low
Jump to B if input 2 is high
Wait until input 7 is high
Wait until input 6 is low
Interpretation
Set speed
DMC-14x5/6

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dmc-14 6 seriesDmc-1415Dmc-1416Dmc-1425

Table of Contents