Bobodopalus Posted July 2, 2020 Report Posted July 2, 2020 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
Michael Walsh Posted July 2, 2020 Report Posted July 2, 2020 Yes, you can assign the AT (Address Translation, I think) field: When creating the variable: After creating: 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.
Bobodopalus Posted July 3, 2020 Author Report Posted July 3, 2020 ye thats all i needed to know thanks, will be a bit easier to convert some ugly code now with alot less inputs
Bobodopalus Posted July 6, 2020 Author Report Posted July 6, 2020 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?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now