Johnny T
Member
Hi all,
I was recently transposing a bit of software and found that the original software used DB20.DBW2 as the timebase for a timer. Within DB20 the DBW2 address is assigned as a WORD type.
I thought this was unusual but I tried a few other WORD types from within the same DB and the timer accepted them without complaint. This software is currently running the machine so must work..
When it came to transposing it my equivalent DB is DB260. However whenever I try and enter DB260.DBW2 into the timer I get the error of 'datatype WORD does not fit formal parameter type S5TIME' ?!??!
I wondered if this was a glitch to do with me adding comments to the new DB as the original DB (ie. DB20) has no comments and just has the standard STAT as the variable name. However, I've tried putting my DB260 exactly as it appears in the DB20 (ie. no comment, STAT as the name, WORD as the type etc) and I'm still not getting anywhere?
Anyone any ideas?
I know that I could just set the address in the DB to be of type S5TIME but I'd rather work out why its working if I use DB20 but not if I use DB260..
Its a CPU 313C 2-DP that I'm using and I wondered if maybe DB260 was out of its range but there isn't a System Fault and DB260 seems to behave correctly in other ways?
I was recently transposing a bit of software and found that the original software used DB20.DBW2 as the timebase for a timer. Within DB20 the DBW2 address is assigned as a WORD type.
I thought this was unusual but I tried a few other WORD types from within the same DB and the timer accepted them without complaint. This software is currently running the machine so must work..
When it came to transposing it my equivalent DB is DB260. However whenever I try and enter DB260.DBW2 into the timer I get the error of 'datatype WORD does not fit formal parameter type S5TIME' ?!??!
I wondered if this was a glitch to do with me adding comments to the new DB as the original DB (ie. DB20) has no comments and just has the standard STAT as the variable name. However, I've tried putting my DB260 exactly as it appears in the DB20 (ie. no comment, STAT as the name, WORD as the type etc) and I'm still not getting anywhere?
Anyone any ideas?
I know that I could just set the address in the DB to be of type S5TIME but I'd rather work out why its working if I use DB20 but not if I use DB260..
Its a CPU 313C 2-DP that I'm using and I wondered if maybe DB260 was out of its range but there isn't a System Fault and DB260 seems to behave correctly in other ways?