6/28/2013 1:17 PM | |
Joined: 1/28/2009 Last visit: 2/21/2023 Posts: 6794 Rating:
|
check the following SCL,I just used M0.3 from CPU's clock memories.Please check the symbol table plus source code as ".pdf" file in attachment. [code]ORGANIZATION_BLOCK OB1 TITLE = 'HELP_ON_SCL' // // Block Comment... // VERSION: '1.0' AUTHOR: HD NAME: H_SCL FAMILY: FORUM_E VAR_TEMP // Reserved info : ARRAY[0..19] OF BYTE; // Temporary Variables END_VAR // Statement //FLANK1:=0; // OUT:=0; IF START =1 THEN IF TWO =1 AND FLANK1 =0 THEN ZAHL:=ZAHL+1; END_IF; FLANK1:=TWO; IF (ZAHL >= 0) AND (ZAHL <2) THEN OUT:=1; ELSE OUT:=0; ; END_IF; IF ZAHL>5 THEN ZAHL:=0; END_IF; ELSE zahl:=0; flank1:=0; OUT:=0; ; END_IF; ; END_ORGANIZATION_BLOCK[/code] Attachmenthelp_on_scl.zip (235 Downloads) |
Last edited by: hdhosseini at: 6/28/2013 5:49 PM// attachment REVISED Last edited by: hdhosseini at: 6/28/2013 1:23 PM// source and symbol table added |
|
This contribution was helpful to
1 thankful Users |
10/22/2013 3:58 PM | |
Posts: 10 Rating:
|
Hello HD, I try to figure out what is your FLANKE1 merker? Thanks.
|
Follow us on