background image

12

DAC internal device v. 2.6

;-------------------------------------------------------------------------------------

; Name File

: TASK_00.MOD

; Project

: EX_DAC

; Description : Gestione Posizionamento

;-------------------------------------------------------------------------------------

;-------------------------------------------------------------------------------------

; Device initialization

;-------------------------------------------------------------------------------------

Asse:offset = 0

;Offset voltage

Asse:uplim  = 32767

;Max. value of analog output

;(+10V)

Asse:lowlim = -32768

;Min. value of analog output

;(-10V)

OUTDIR Asse

;Set analog output sign

WAIT NOT Asse:st_outrev

;Check analog output sign

slOutAna = 0

;Set analog output input variable to 0 Volt

;-------------------------------------------------------------------------------------

;

Setting of the analog output

;------------------------ Used variables -------------------------------------

; slOutAna: percentage value of analog output (% of uplim)

; ifChangeOut: input used to reverse the sign of analog output

; gfCambio: flag for rising front detection of input ifChangeOu

;-------------------------------------------------------------------------------------

MAIN:

IF ifChangeOut

IF NOT gfCambio

;Wait for input activation

gfCambio = 1

;Write the new analog output value

Asse:in = (slOutAna * Asse:uplim) /100

;Set analog output sign

ENDIF

ELSE

gfCambio = 0

;Write the new analog output value

ENDIF

;-------------------------------------------------------------------------------------

;

Final operation

;-------------------------------------------------------------------------------------

WAIT 1

JUMP MAIN

END

DAC management

Summary of Contents for q-move

Page 1: ...DAC internal device v 2 6 DAC motion controller micro Internal Device...

Page 2: ...his manual is published by QEM srl without any kind of guarantee and we reserve the right to make modifications of typographical errors inaccuracies in content and improvements also of the products to...

Page 3: ...declaration in the configuration file CNF 5 Example 5 FUNCTION 6 Device configuration 6 Exemple 6 COMMAND E PARAMETER 7 Adopter symbols 7 Command 7 R 7 D 7 Conditions 7 A 7 Parameters 8 Status 9 LIMI...

Page 4: ...CPU that allows to manage an analog output with 15 bit of resolution The wirings and connections of the equipment described in the manual present must respect the European Norm En60204 1 in outrev A A...

Page 5: ...evice_name DAC IOutA where device_name Is the name of the device DAC Is the key word that identifies the device analog output IOutA Hardware address of the DAC component of the Slave analog output Exa...

Page 6: ...offset parameter is a variable which to be added to the in variable in order to adjust the analog output In 32767 10 V maximum analog output value In 0 0V central value of analog output In 32768 10 V...

Page 7: ...to be considered correct or for the control to be accepted In some cases limit values are specified for the parameter to be accepted however if values external to set limits are introduced the datum i...

Page 8: ...will be setted to the Low limit and the st_lowlim status will be activated The value can be positive or negative Range 32768 32767 Bit DAC out W R R Output DAC Simgned analog OOUTPUT of the DAC The v...

Page 9: ...9 DAC internal device v 2 6 LIMITATIONS Not limitations...

Page 10: ...empio gestione DAC Release 0 Note 1 Exemple of application for use device DAC Costant definition CONST SYSTEM variables SYSTEM slOutAna L Variable for analog output GLOBAL variables GLOBAL gfCambio F...

Page 11: ...11 DAC internal device v 2 6 INPUT variables INPUT ifChangeOut F 2 INP01 Change the analog output OUTPUT variables OUTPUT Internal device declaration INTDEVICE Nome Tipe OutAnal Asse DAC 2 AN01 END...

Page 12: ...na 0 Set analog output input variable to 0 Volt Setting of the analog output Used variables slOutAna percentage value of analog output of uplim ifChangeOut input used to reverse the sign of analog out...

Reviews: