Remote-processing CAMBASIC Manual de usuario Pagina 204

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 208
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 203
Event Multitasking - 15
executed and then go low.
The PU LSE function r eturns the rem aining time of each stage. The example below demonstrates this.
10 PULSE 0,0,1,.05,1
30 A = PULSE(0):IF A=0 THEN STOP
40 PRINT A
50 GOTO 30
RUN
.03
.02
.02
.02
.01
.01
.01
5E-03
5E-03
5E-03
STOP
Operation o f a Multiple P ulsed Outpu ts
The real power of the PULSE operation comes when it is combined with the ON INP tasking statement and multiple timed
outputs are required. The application could involve pneumatic valves, injection molding steps or other sequence– oriented
operations. T he following (lame) ex ample sim ulates a dru m timer by turning on outputs w hen a previous timed pulse is
complete. The job here is a bag sealing operation. A pre-heater is started and sealing head is brought down when the start
switch is pressed. After the pre-heater is timed out, the heater is turned on for a second. The head is down for 4 seconds.
When the head is done, an interrupt is generated which moves the package to the next place. Opto rack positions 0-4 are
used to control a sealing head, pre-heater, heater, and pusher.
CONFIG PIO 1,0,0,0,0,0
'Detect start switch
ON INP 0,0,1,1 GOSUB ..start
'
'Detect emergency or STOP switch
on inp 1,0,2,2 gosub ..emergency
'
'Generate interrupt when head goes up
on inp 2,2,2,1 GOSUB ..headup
'
'Generate interrupt when pre-heat done
on inp 3,1,1,2 gosub ..preheat
'
'rest of program
'
'
..start
'Start switch was pushed. Now start sequence
bit 2,4,1 :'reset bag pusher
pulse 0,2,0,2,0 :'turn on pre-heat for 2 seconds
pulse 1,2,1,4,0 :'Bring down sealing head for 4 seconds
return
'
Vista de pagina 203
1 2 ... 199 200 201 202 203 204 205 206 207 208

Comentarios a estos manuales

Sin comentarios

Audio Solutions Příslušenství pro video uživatelské příručky

Začínající na F

Klepnutím na abecedu níže přejděte na úplný seznam modelů začínajících tímto písmenem

Modely Typ Dokumentu
F2642
Uživatelský manuál   Audio Solutions F2642 Manuel d'utilisation, 9 stránky
FM2260
Uživatelský manuál   Audio Solutions FM2260 Manual del usuario, 11 stránky
Uživatelský manuál   Audio Solutions FM2260 Manuel d'utilisation, 11 stránky
Uživatelský manuál   Audio Solutions FM2260 User Manual, 11 stránky
FM2642
Uživatelský manuál   Audio Solutions FM2642 Manual del usuario, 12 stránky
Uživatelský manuál   Audio Solutions FM2642 Manuel d'utilisation, 12 stránky
Uživatelský manuál   Audio Solutions FM2642 User Manual, 12 stránky
FM3242
Uživatelský manuál   Audio Solutions FM3242 Manuel d'utilisation, 10 stránky
Uživatelský manuál   Audio Solutions FM3242 User Manual, 10 stránky
FM3260
Uživatelský manuál   Audio Solutions FM3260 Manuel d'utilisation, 10 stránky
Uživatelský manuál   Audio Solutions FM3260 User Manual, 10 stránky