Digital Inputs - Galil Motion Control DMC-18 2 Series User Manual

Table of Contents

Advertisement

For example:
Instruction
OP6
OP0
OP 255
The output port is useful for setting relays or controlling external switches and events during a motion
sequence.
Example - Turn on output after move
#OUTPUT
PR 2000
BG
AM
SB1
WT 1000
CB1
EN

Digital Inputs

The DMC-18x2 has eight digital inputs for controlling motion by local switches. 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-18x2. High on input 1 means switch is in on
position.
Instruction
#S;JG 4000
AI 1;BGX
AI -1;STX
AMX;JP #S
EN;
142 ● Chapter 7 Application Programming
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Function
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 + 2 3 + 2 4 + 2 5 + 2 6 + 2 7 )
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
Function
Set speed
Begin after input 1 goes high
Stop after input 1 goes low
After motion, repeat
DMC-18x2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dmc-1812Dmc-1822Dmc-1832Dmc-1842

Table of Contents