Справочник Пользователя для Delta Tau GEO BRICK DRIVE

Скачать
Страница из 294
 Geo Brick Drive User Manual 
Pinouts and Software Setup 
 52 
 
 
Note 
These  MACRO  IC0  Clock  settings  are  optimized  for  a  good  Analog 
Output  signal.  If  the  Brick  is  a  MACRO  Ring  Controller  then  the 
analog output signal quality is compromised with a much lower PWM 
frequency, or should not be used at all. 
 
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=816, writing directly to the assigned M-variable (i.e. M7050) should produce the following: 
 
M7050 
Single-Ended: 
Gnd  Output+ 
Differential: 
Output+  Output- 
 
-10V 
-20V 
-408 
-5V 
-10V 
0V 
0V 
408 
+5V 
+10V 
816 
+10V 
+20V 
 
 
 
Note 
Writing values greater than I6800 (i.e. 816) in M7050 will saturate the 
output  to  10,  or  20  volts  in  single-ended  or  differential  mode 
respectively   
 
 
Note 
MACRO connectivity provides more solutions for analog outputs, e.g. 
using ACC-24M2A.