Sign in to follow this  
Followers 0
Bobodopalus

Can you use internal plc bits in function blocks?

4 posts in this topic

Hi all

is it possible to use the internal date of a plc in a function block without setting it as an input for the function block?

for instance i have some logic to do something inbetween lets say 10:00 and 16:00 o'clock am i able to use those internals bits of the plc where the time is stored without inputting them to the function block and using them internally?

 

thanks

Share this post


Link to post
Share on other sites

Yes, you can assign the AT (Address Translation, I think) field:

When creating the variable:

AT1.jpg.a004f2c8944806885c775c686ebf7c71

After creating:

AT2.thumb.jpg.03fb5ede9cf5a2877441703d8c

Then just use Minutes_Seconds in your code.  Of course you may need to strip out minutes and seconds using the MOVD command for it to be useful.

Share this post


Link to post
Share on other sites

ye thats all i needed to know thanks, will be a bit easier to convert some ugly code now with alot less inputs

Share this post


Link to post
Share on other sites

just to double check this works for clock pulses too? if i put CF102 in the address for 1 second pulse that should be fine?

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
Sign in to follow this  
Followers 0