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```flowchartst=>start: Start:>http://www.google.com[blank]e=>end:>http://www.google.comop1=>operation: My Operationsub1=>subroutine: My Subroutinecond=>condition: Yesor No?:>http://www.google.comio=>inputoutput: catch something...st->op1->condcond(yes)->io->econd(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 variabelenDECLARE SHORT _glb_sp_plc[20]DECLARE PROC sp_read( SHORT)DECLARE PROC sp_compl( SHORT)#Declaratie procedurePROC setpBEGINEND#Setpoints T10P2 (PLC6)#===============================PROC sp_read6BEGINCALL sp_read(6)ENDPROC sp_compl6BEGINCALL sp_compl(6)END#===============================#Bepalen of setpoints terug gelezen dienen te worden van PLC6.PROC sp_read( SHORT _plc)#Trigger = readcmpl[_plc][10]BEGINIF Dec_status_ds[_plc][10] = 0 THENIF _glb_sp_plc[_plc] = 0 THENccr_lvl2_change_sp[_plc] == 1ENDIFELSE_glb_sp_plc[_plc] = 0ENDIFEND#Teruglezen setpoints voltooid en zonder fouten.PROC sp_compl( SHORT _plc)#Trigger = readcmpl[_plc][15]BEGINIF Dec_status_ds[_plc][15] = 0 THEN_glb_sp_plc[_plc] = -1ENDIFEND```IML trigger tabel'''linesHighlighted: []isStarred: falseisTrashed: false