s7 "time of day" data type compare

gareth_mint

Member
Join Date
Dec 2010
Location
uk
Posts
50
can someone please help me, im trying to compare two "time of day" data types but i cant seem to do it,
I have a time of day from a hmi, and i want to compare it to a set "time of day" which i have in another data block.
i just cant seem to compare if one is greater than another?

Thanks again
Gareth
 
Copy the blocks containing the code that you cant get to work to the library I posted, archive it and post as an attachment.
 
Can anyone see an issue with using a MOVE instruction to transfer a TOD into a DINT so COMPARE instructions can be used?

Using ladder.

I don't really want to disable datatype checking so I was thinking this might be a work around.
 

Similar Topics

Hi guys, I have no experience when working with AllenBradley PLC, but I hope someone could clarify the result of multiplication shown in the...
Replies
14
Views
2,133
Trying to get data types (AS Structures) to update after a new tag import is made from PLC. WinCC can show red if an existing element was removed...
Replies
0
Views
241
Is there a way to use LREAL Data type on L71. I am getting 64 bit Double (IEEE754 Double precision 64-bit) data from a modbus device onto PLC via...
Replies
6
Views
859
Hello, I have been trying to figure out how to edit data type for an AOI in Studio 5000. I keep getting an error "unable to modify data type...
Replies
0
Views
500
Back
Top Bottom