rohan_hamer
Member
Hi guys,
Im a complete PLC newbie, I am trying to complete a Uni assignment.
I am struggling on my last step, I need to save a unique identifier at regular intervals, my thought was to use the MOV function and the PLCs RTC to save datetime into a DINT, It would be nice to be about to output this into something to prove it works but using the Emulation software I know the RTC doesnt count, so thats tricky. as the whole system is a virtual system.
I cant get the addressing quite correct so cant get the project to compile. anybody able to give me some guidance to tips on this one?
I have a rung that has a series of MOV instructions with the Source as RTC:0.YR ,RTC:0.MON etc but how do i put them into the dint as YYMMDDHHMMSS style. should I be using a string?
Im a complete PLC newbie, I am trying to complete a Uni assignment.
I am struggling on my last step, I need to save a unique identifier at regular intervals, my thought was to use the MOV function and the PLCs RTC to save datetime into a DINT, It would be nice to be about to output this into something to prove it works but using the Emulation software I know the RTC doesnt count, so thats tricky. as the whole system is a virtual system.
I cant get the addressing quite correct so cant get the project to compile. anybody able to give me some guidance to tips on this one?
I have a rung that has a series of MOV instructions with the Source as RTC:0.YR ,RTC:0.MON etc but how do i put them into the dint as YYMMDDHHMMSS style. should I be using a string?