EasyManuals Logo

QEM q-move User Manual

Default Icon
12 pages
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #12 background imageLoading...
Page #12 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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the QEM q-move and is the answer not in the manual?

QEM q-move Specifications

General IconGeneral
BrandQEM
Modelq-move
CategoryMedia Converter
LanguageEnglish