Jump to content

Recommended Posts

Posted

Hi,

Many Programms we have are written in Codesys and in ST Language  and now we have a FX5U and I'm trying to Convert some of them.

But the both Systems are different, I miss the Librarys like util.lib and FB like RAMP_REAL, BLINK, LIMITERROR which are in Util.lib.

Are there Librarys like util.lib for GX Works 3 ? Is it possible to convert Ladder to ST? (I dont have any Idea from Ladder and I'm new in Programming) 

Have someone Sample Programms for me for Training?


Posted

Does the Ramp need to be real ? Because there is a RAMPF which will work for signed 16 bit.

As for Blink sounds like you need a bit for 0.5 on and o.5 off this is bit SM412.
SM400, SM8000Always ON
SM401, SM8001Always OFF
SM402, SM8002After RUN, ON for one scan only
SM403, SM8003After RUN, OFF for one scan only
SM409, SM80110.01 second clock
SM410, SM80120.1 second clock
SM411, 0.2 second clock
SM412, SM80131 second clock
SM413, 2 second clock
SM414, 2n second clock
SM415, 2n ms clock
SM8014, 1 min clock
SM420, SM8330Timing clock output 1
SM421, SM8331Timing clock output 2
SM422, SM8332Timing clock output 3
SM423, SM8333Timing clock output 4
SM424, SM8334Timing clock output 5

There are several Limiting functions in the iQ-F Can you explain what the Limitalarm does?

 

Posted

i send you A Picture with the Variables. 

I tried this in ST as a FB:

IF IN < HIGH OR IN > LOW THEN
    
    IL:= TRUE;
    U:= FALSE;
    O:= FALSE;

ELSIF IN > HIGH THEN
    
    O:= TRUE;
    U:= FALSE;
    IL:=FALSE;

ELSIF IN < LOW THEN
    
    U:= TRUE;
    O:= FALSE;
    IL:=FALSE;
    
END_IF;    

limitalarm.jpg

Posted (edited)

The Limit function in the Mitsubishi is a real limit function it will restrict the output to the lower or upper limit.

Using the GE/GT or LE/GR would be easiest in this case.

something Like :

IF Part_Count <= 10 THEN            (* Condition Normal *)
    Conveyor        := 1;
    Alarm_Signal     := 0;
ELSE                                    (* Condition abnormal *)
    Conveyor        := 0;
    Alarm_Signal    := 1;
END_IF;
 

 

Edited by Gambit
  • Like 1
Posted

Maybe this example will help for your Ramp instruction

(* ############################################################################### *)
(* EXAMPLE FOR "LIMIT" (IEC Function) *)
(* ############################################################################### *)

LIMIT( ?BOOL_EN? , ?ANY16_s1? , ?ANY16_s2? , ?ANY16_s3? , ?ANY16_d? );

LIMIT(TRUE, 10 ,90,  Temperature, Result1 );

Posted

if you enter your instruction like Ramp in GX Works3. It will autocomplete the instruction to RAMPF.

Now if you press CTRL + F1 it will autocomplete it to 

RAMPF( ?BOOL_EN? , ?ANY16_s1? , ?ANY16_s2? , ?ANY16_U_n? , ?ANY16_ARRAY_d? );

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...