2/22/2011 12:35 PM | |
Joined: 4/22/2010 Last visit: 12/15/2022 Posts: 5697 Rating:
|
Little example in FBD, using 1 counter and a SHL_W instruction. M50.1 is a 0.2sec clockpuls, you can use bit 5 for your purpose. AttachmentFC2.pdf (70 Downloads) |
Last edited by: Marcjan at: 2/22/2011 5:28 PManother update Last edited by: Marcjan at: 2/22/2011 4:27 PMupdated attachment Last edited by: Marcjan at: 2/22/2011 12:46 PMProblem solved? |
|
2/24/2011 11:15 AM | |
Joined: 1/28/2009 Last visit: 9/25/2023 Posts: 6822 Rating:
|
Dear Ali Asgar This is the response you wanted in your private message.It is a draft piece of program which can be improved by yourself to suit your requirements. Also check tha attachment for analysis. [code] L #BYTE1 L 1 <I JCN ST T #BYTE1 //M0.5 CPU clock merker 500ms ST: A M 0.5 FP #FLANK1 = M 1.0 NOP 0 A M 1.0 JCN STR L #BYTE1 SLW 1 T #BYTE1 T QB 0 STR: NOP 0 L #BYTE1 T QB 0[/code] I hope this helps hdhosseini AttachmentBLINK.zip (84 Downloads) |
Last edited by: hdhosseini at: 2/24/2011 11:19 AMLast edited by: hdhosseini at: 09/27/2019 01:15:32 |
|
2/25/2011 3:21 PM | |
Joined: 7/26/2008 Last visit: 9/28/2023 Posts: 93 Rating:
|
Hi Hosseini, I wrote a little program in ladder since that is what most prefer. The program can pulse any bit string in QD0 with the mask as selection. Use it don't use it! AttachmentForum_Shift.zip (55 Downloads) |
Follow us on