Posted 2 Jul 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 Share this post Link to post Share on other sites
Posted 2 Jul 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. Share this post Link to post Share on other sites
Posted 3 Jul 2020 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
Posted 6 Jul 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? Share this post Link to post Share on other sites