;========================================================================= ;Description des variables ;========================================================================= ; Titre : <> ; Fichier : ; Produit : ; Materiel : ; Firmware : >3.00 ;------------------------------------------------------------------------- ; Revision : 1.02 ; Auteur : ; Date rev. : 15 fevrier 2006 ;------------------------------------------------------------------------- ; commentaires ; ;------------------------------------------------------------------------- ; Copyright (c) 2006 Transtechnik ; ; Transtechnik ; 17 rue des Grandes Varennes ; 21121 AHUY ; www.transtechnik.fr ; tel : 03.80.55.00.00 ;========================================================================= ;Declaration des E/S ;IS00: Entree de mise en regulation ;IS01: BP START ;IS02: BP STOP ;IS03: Capteur de POM ;OS00: Position atteinte ;OS01: ROT 0 ;OS02: Variateur pret %text(descripH) def H00=offset_pom def H01=num_prog def H05=cote_calc def H06=offset_recal def H07=posoffset def H10=V_operateur def H11=v_calcule def H105=mem_pos def H70=tps_offset def F106=actualpos end %P00 N001 CALL N200 ;appel sous prg d'initialisation N002 JMP(H001=1)N020 N005 JMP(H001=2)N022 ;attente impulsion bp start N006 JMP(H002=3)N006 N007 JMP(IS03=4)N007 N010 GO 0 + H00 ;demande de POM + offset de position sur POM N011 JMP (STA_HOMATD=0)N011 ;attente POMOK ;*****************Boucle prinicipal du programme************************* N020 CALL N100 ;appel sous prg 1 N022 CALL N120 ;appel sous prg 2 N029 CALL N140 ;appel sous prg 3 N030 JMP N020 ;************************************************************************ ;**************Sous programme 1***************** N100 JMP(IS01=0)N099 ;... N099 RET ;************************************************************************* ;**************Sous programme 2***************** N140 JMP(IS01=0)N099 N149 RET ;************************************************************************ ;*************Sous programme d'initialisation**************************** N200 SET F106=0 N219 RET ;************************************************************************ ;********Sous programme d'affichage de la position courante************** N240 SET F105=PARA[754] N241 SET F105:10 N242 SET F106=F105 N249 RET ;************************************************************************ END