Delta Tau GEO BRICK LV Manual Do Utilizador

Página de 271
Geo Brick LV User Manual
 
PinOuts and Software Setup 
 42 
For Help with clock calculations, download the Delta Tau Calculator: 
  
 
J9 Analog Output Suggested M-Variable 
// I/O 10 & 11 Mode (PWM) 
M7051->Y:$78404,10,1 
M7052->Y:$78404,11,1 
M7051=0  
; =0 PWM, =1 PFM 
M7052=0  
; =0 PWM, =1 PFM 
 
// Analog Output M-variable  
M7050->Y:$78412,8,16,S 
 
// These I/O nodes have to be setup once on power-up.  
// power-up PLC Example 
Open PLC 1 clear 
I6612=100*8388608/I10 While(I6612>0) Endw 
M7051=0 ; PWM mode 
M7052=0 ; PWM mode  
Disable PLC 1 
Close 
 
Testing the J9 Analog Output 
With I6800=735, writing directly to the assigned M-variable (i.e. M7050) should produce the following: 
 
M7050 
Single-Ended: 
Gnd  Output+ 
Differential: 
Output+  Output- 
-735 
-10V 
-20V 
-368 
-5V 
-10V 
0V 
0V 
368 
+5V 
+10V 
735 
+10V 
+20V 
 
 
 
Note 
Writing values greater than I6800 (i.e. 735) in M7050 will saturate the 
output  to  10,  or  20  volts  in  single-ended  or  differential  mode 
respectively   
 
 
Note 
MACRO connectivity provides more analog output options, e.g. ACC-
24M2A.