Levent1970

Need Help for Converting FB from Codesys to GX Works 3 in ST

11 posts in this topic

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?

Share this post


Link to post
Share on other sites

Mitsubishi PLC's have the largest instruction set inside. So there is probably an instruction for what you need.

There are extra FB but i doubt you'll need them.

Which function are you looking for?

As for getting to know Mitsubishi hardware & Software :

http://www.mitsubishielectric.com/fa/assist/e-learning/index.html

 

 

Share this post


Link to post
Share on other sites

I Need Specially RAMP_REAL, BLINK and LIMITALARM Functions, Thanks.

Share this post


Link to post
Share on other sites

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?

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

and the Same Problem with RAMP_REAL, i need it in ST and i have no Idea how i can do it.

Ramp_Real.png

Share this post


Link to post
Share on other sites

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
1 person likes this

Share this post


Link to post
Share on other sites

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 );

Share this post


Link to post
Share on other sites

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? );

 

Share this post


Link to post
Share on other sites

keine ursache 

Share this post


Link to post
Share on other sites

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