uptown47
Lifetime Supporting Member
Hi all,
I'm trying to convert an old S5 program to S7 and (as much as I can) convert it to Ladder too.
I've come across the following code:
I've translated this ok into STL in S7...
... but it won't go into ladder because the Less Than Equal To comparator only wants an INT type and doesn't like S5Time ?
Any ideas what the equivalent is in ladder of this code?
** EDIT **
I've just come across another part of the code that won't translate...
L C 4
L 0
==I
= F 243.5
In S7 the C address is just 'on' or 'off' (on if the counter is equal to anything other than 0). In S5, does the C address actually hold the counter value??
Many thanks for any light you can shed on this.
Cheers
;-)
I'm trying to convert an old S5 program to S7 and (as much as I can) convert it to Ladder too.
I've come across the following code:
Code:
L FW 210
L KT 070.0
<=F
= F 8.4
I've translated this ok into STL in S7...
Code:
L MW 210
L S5T#700MS
<=I
= M 8.4
... but it won't go into ladder because the Less Than Equal To comparator only wants an INT type and doesn't like S5Time ?
Any ideas what the equivalent is in ladder of this code?
** EDIT **
I've just come across another part of the code that won't translate...
L C 4
L 0
==I
= F 243.5
In S7 the C address is just 'on' or 'off' (on if the counter is equal to anything other than 0). In S5, does the C address actually hold the counter value??
Many thanks for any light you can shed on this.
Cheers
;-)
Last edited: