10/15/2014 11:41 AM | |
Posts: 6 Rating: (0) |
Hi I need help with HSC I just want to use 1 phase, so I only use 1 output from encoder. I attach some of my setting for HSC. (pic untitle1-untitle3 = setting HSC) (pic untitle4 = connecting input and HSC) (pic untitle5 = result from watch table) (pic untitle6 = all tag) (pic untitle7 = information wiring for encoder) 2 other pic is the wiring and test, when I turn encoder is ok (on and off perfectly). but the value in %ID1000 not change? maybe my setting is wrong, so can some body help me. thanks
AttachmentNeed Help.zip (702 Downloads) |
10/16/2014 10:50 AM | |
Joined: 4/24/2006 Last visit: 11/13/2024 Posts: 8768 Rating: (1171) |
Hi Doni, Are you calling CTRL_HSC in OB1? It should be called in an interrupt OB. (Whenever the countvalue reaches the desired value it will be called by interrupt, so you can set a new countvalue (Start all over again)) Perhaps this thread might help: Sample Program: S7-1200 High Speed Counter (HSC) Best regards, Wizard |
Follow us on