Del

FX 3GEwith GXworks 2

3 posts in this topic

Hi Guys, I,m fairly new to programming but I,m (kind of) OK at the basices. Years back I used to have a play with the old Basic Program on an ordinary PC. A very handy command in Basic was the "If, Then, Else " statement. 

I was just kind of wondering if a similar thing was available when programming an Fx Plc in GX works 2, (eg FX3ge).

For instance if value DB*** (Outside temperature)  is greater than DB### (Inside temperature) then output Y001 else output Y000.

I,m also going to have my very first go at Analog Input/Output programming a temperature sensor to control the speed of a cooling fan so expect to hear a lot more from me  LOL

 

Many thanks

 

Del

Share this post


Link to post
Share on other sites

It is possible but it will use a lot of your pointers. It woud be better to use an FX5 but it is possible.

 

 

1 person likes this

Share this post


Link to post
Share on other sites

That isn't really how ladder logic works, it doesn't really do 'else' unless as suggested you go for a PLC with structured text (ST) language option.

In ladder one options would be:

 

IF

--[> DB*** DB###]------------------------------------(M1)---

THEN

--|M1|-------------------------------------------------(Y0)-----

ELSE

--|/ M1|------------------------------------------------(Y1)-----

 

 

1 person likes this

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