selinrv

MrPLC Member
  • Content count

    12
  • Joined

  • Last visited

Everything posted by selinrv

  1. Hi everyone. Could someone explain, how do I righly stop pulsating command PLSY. Setting deceleration time and using SM5644 ends up with 3651 error. PLC is Mitsubishi FX5U, GX Works 3 Thanks
  2. 1ms TON and TOF GX Works 3 FX5U

    Ok. So how do i use PLSY for two outputs, so they do not overlap each other? Like this   One idea was to use TIMER_1_FB_M, but I can't put a fractional number, like 6.25ms for 80Hz in timer
  3. 1ms TON and TOF GX Works 3 FX5U

    Hi everyone I'm new to FX5U, 'cause I previously used Q-series PLC. So, is there any possibility to make on delay timer with 1ms PT?
  4. 1ms TON and TOF GX Works 3 FX5U

      transistor output
  5. 1ms TON and TOF GX Works 3 FX5U

    sorry for upping this topic again, are there any other suggestions?
  6. 1ms TON and TOF GX Works 3 FX5U

    i tried, but my program also depends on when out1 and out2 (outputs that pulsating), e.g. If out1=true THEN i'm doing something END_IF With PLSY out1 is always OFF (even when Y1 light is on) or i'm doing something wrong?
  7. 1ms TON and TOF GX Works 3 FX5U

    i need two pulsating outputs with frequency from 0,5 to 80 Hz. And i set the frequency with TON timer for both outputs something like this /*0.5Gz*/ IF start=TRUE AND vhod1>1000 AND vhod1<1099 THEN timer1(IN:=TRUE, PT:=T#1000ms); END_IF; IF timer1.Q AND vhod1>1000 AND vhod1<1099 THEN out3:=TRUE; out4:=FALSE; timer1(IN:=FALSE); start:=FALSE; END_IF; IF out3=TRUE AND vhod1>1000 AND vhod1<1099 THEN timer2(IN:=TRUE, PT:=T#1000ms); END_IF; IF timer2.Q AND vhod1>1000 AND vhod1<1099 THEN out3:=FALSE; out4:=TRUE; timer2(in:=FALSE); END_IF; IF out4=TRUE AND vhod1>1000 AND vhod1<1099 THEN timer1(IN:=TRUE, PT:=T#1000ms); END_IF;  
  8. 1ms TON and TOF GX Works 3 FX5U

    Yeah, I know, that they are available, but there are TON with PT 100ms and more, and TON_10 with PT 10 ms and more. And I'm in need of 1 ms time
  9. Absolute value in ST

    The thing is it's working, but not as needed. It just divides Sum1 on Nsum in real values, but not stores SUM1 values and divides them on Nsum value (Nsum is number of values stored in SUM1)    
  10. Absolute value in ST

    Hi everybody I'm trying to create a code to count an absolute value from my Q64AD module. I found absolute value function ABS, but its working somewhat strange, and i do not see the difference between real value and absolute value. Then I created a timer for an absolute value with some mathematics: SUM1:= SUM1 + napr1; Nsum := Nsum + 1; IF timer_sr.Q THEN timer_sr(IN:= NOT timer_sr.Q , PT:= T#100ms); outsr := SUM1 /Nsum; Nsum := 0; SUM2 := 0; END_IF;   where napr1 - is value from Q64AD module ch1. It worked on codesys, but not working here. Data type of sum1, napr1, nsum is Word[signed]. In codesys Nsum was INT type. What's the difference and what i did wrong?
  11. timer question

    Thanks for your answer, already figured out whats wrong. Changed timer limit setting in PLC parameter and everything works
  12. timer question

    Sorry for bringing up old topic I want to setup PT time of TON to 30ms, but i can't setup value lower than 100ms. Its Q00UJCPU and GX Works 2