Subversion Repositories DMV.werkorder

Rev

Blame | Last modification | View Log | Download

createdAt: "2019-11-05T15:22:50.107Z"
updatedAt: "2019-11-05T15:23:58.653Z"
type: "MARKDOWN_NOTE"
folder: "d1cc296b3fd7fc164332"
title: "testnote"
tags: []
content: '''
  # testnote
  
  ```flowchart
      st=>start: Start:>http://www.google.com[blank]
      e=>end:>http://www.google.com
      op1=>operation: My Operation
      sub1=>subroutine: My Subroutine
      cond=>condition: Yes
      or No?:>http://www.google.com
      io=>inputoutput: catch something...
      
      st->op1->cond
      cond(yes)->io->e
      cond(no)->sub1(right)->op1
  ```
      
  Bestand IML: setp.prg
  
  ```php
  # standaard     Flecs
  # funktie       Afhandeling van teruglezen setpoints bij opstart
  #               en/of communicatie fouten.               
  # versie        1.0
  # Auteur        Marcel Jordaan
  
  #Globale IML variabelen
  DECLARE SHORT _glb_sp_plc[20]
  DECLARE PROC sp_read( SHORT)
  DECLARE PROC sp_compl( SHORT)
  
  #Declaratie procedure
  PROC setp
  BEGIN
  END
  
  #Setpoints T10P2 (PLC6)
  #===============================
  PROC sp_read6
  BEGIN
  
    CALL sp_read(6)
  END
  
  PROC sp_compl6
  BEGIN
  
    CALL sp_compl(6)
  END
  #===============================
  
  
  #Bepalen of setpoints terug gelezen dienen te worden van PLC6.
  PROC sp_read( SHORT _plc)
  #Trigger = readcmpl[_plc][10]
  BEGIN
  
    IF Dec_status_ds[_plc][10] = 0 THEN
    
      IF _glb_sp_plc[_plc] = 0 THEN
          
            ccr_lvl2_change_sp[_plc] == 1
          ENDIF
    ELSE
    
      _glb_sp_plc[_plc] = 0
    ENDIF
  END
  
  #Teruglezen setpoints voltooid en zonder fouten.
  PROC sp_compl( SHORT _plc)
  #Trigger = readcmpl[_plc][15]
  BEGIN
  
    IF Dec_status_ds[_plc][15] = 0 THEN
    
      _glb_sp_plc[_plc] = -1
    ENDIF
  END
  ```
  
  IML trigger tabel
      
'''
linesHighlighted: []
isStarred: false
isTrashed: false