Delta Tau TURBO CLIPPER DRIVE User Manual

Page of 87
Turbo Clipper Drive User Manual 
 
Breakout Board: Wiring, Software Setup 
43 
General Purpose I/Os, Suggested M-Variables 
M1->Y:$78400,0  
; Digital Output 1 
M2->Y:$78400,1  
; Digital Output 2 
M3->Y:$78400,2  
; Digital Output 3 
M4->Y:$78400,3  
; Digital Output 4 
M5->Y:$78400,4  
; Digital Output 5 
M6->Y:$78400,5  
; Digital Output 6 
M7->Y:$78400,6  
; Digital Output 7 
M8->Y:$78400,7   
; Digital Output 8 
 
M9->Y:$78400,8  
; Digital Input 1 
M10->Y:$78400,9  
; Digital Input 2 
M11->Y:$78400,10  
; Digital Input 3 
M12->Y:$78400,11  
; Digital Input 4 
M13->Y:$78400,12  
; Digital Input 5 
M14->Y:$78400,13  
; Digital Input 6 
M15->Y:$78400,14  
; Digital Input 7 
M16->Y:$78400,15  
; Digital Input 8 
 
M32->X:$78400,0,8  
; Direction Control bits 0-7 (1=output, 0 = input) 
M34->X:$78400,8,8  
; Direction Control bits 8-15 (1=output, 0 = input) 
M40->X:$78404,0,24  
; Inversion control (0 = 0V, 1 = 5V) 
M42->Y:$78404,0,24 
; J9 port data type control (1 = I/O) 
 
//In order to properly setup the digital I/Os, an initialization PLC must be written scanning 
//through once on power-up/reset, setting control statuses then disabling itself: 
 
Open PLC 1 clear 
M32=$FF  
 
; BITS 0-7 are assigned as output 
M34=$0   
 
; BITS 8-15 are assigned as input 
M40=$FF00  
 
; Define inputs and outputs 
M42=$FFFF  
 
; All lines are I/O type 
DIS PLC1  
 
; Disable PLC1 (scanning through once on power-up/reset) 
Close