NicholasH Posted May 11, 2010 Report Posted May 11, 2010 Is there a way to initialise the PV value of a timer before the timer starts? My attempts at this seem to result in the PV value being set correctly, but as soon as the timer starts counting, the PV resets to zero (using an incremental counter).
PdL Posted May 11, 2010 Report Posted May 11, 2010 He is talking about initialising the PV, not the SV.
Jay Anthony Posted May 11, 2010 Report Posted May 11, 2010 Quote from Omron Instruction set: Timer numbers cannot be designated as D to change the PV of a timer or a counter. You can, however, easily change the PV of a timer or counter by using BSET.
lostcontrol Posted May 12, 2010 Report Posted May 12, 2010 Fair enough, but this is the same as using MOV, IMO anyway....
PdL Posted May 12, 2010 Report Posted May 12, 2010 I think with MOV you can only set a constant value, with the method Jay suggests you can use a variable to set the timer PV.
lostcontrol Posted May 13, 2010 Report Posted May 13, 2010 True, good support is hard to find.... http://www.lmgtfy.com/?q=Omron+PLC%27s & MrPLC comes up 4th....
Jay Anthony Posted May 13, 2010 Report Posted May 13, 2010 The instruction set reference was from the CQM1 manual. In C series instruction sets, it was not possible to MOV to Timer PV, but BSET allowed TC to be in the possible list of destinations. I have since checked (with CX Simulator) the CS/CJ instruction set and you are correct. A MOV to timer PV is possible and does work. Touche.
PdL Posted May 13, 2010 Report Posted May 13, 2010 I stand corrected, lostcontrol! I also was under the impression you could only change a PV on the fly using BSET, as I was used when I "grew up" with CQM/C200H series. Since then I rarely use this function to change a timers PV.
lostcontrol Posted May 13, 2010 Report Posted May 13, 2010 This has been a good discussion, I think the issue of setting a timers PV is one of those 'there are many ways to do the same thing'
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now