Logix PMUL block clarification

thiem

Member
Join Date
Jun 2007
Location
WI
Posts
40
In the end I want to use the raw encoder feedback from a PF700 (param 414, DInt format) into the PMUL block. Right now I was just testing to make sure it would work how we thought.

From what I gather from the documentation on the block, the scan to scan change in relative mode cannot exceed half the word size of the input data. OK, so for a quick test I decided to rollover from 32767 to -32768. Every scan I added 258 (number picked from thin air) to my fake encoder input. When the word size is 9 or less, then the direction goes negative because as the documentation states, the scan to scan change is 258>256.

My real question is how does the block get the rollover correct? Change from 32767 to -32768 is very much greater than 256?? Yet the block gives the correct count change out per scan. Tried same test rolling over at 65535 as well, same results.

I believe right now I could put in this code and as long as I calculated out the scan to scan change of the encoder feedback at the desired line speed (via the mechanical gear in) and made sure my word size was set correctly for the count change due to run time speed, everything would be fine. I am just really curious as to how the rollover part seems to work?
 
The block "knows" that (if used correctly) the value returned by the subtraction is invalid and adds the full scale value to it. At least that's my best guess since I don't have access to that software, but have "rolled my own" in the past which behaved exactly the same way with the same restriction.

Paul
 

Similar Topics

I have been working on this for a while now and I can't seem to get it. I was finally able to view the 1500 on the PanelView under the serial...
Replies
1
Views
24
I'm using a SLC typed write from the ControlLogix5572 to the MicroLogix 1400, with path: 2, (MicroLogix IP). The ControlLogix equipment has a...
Replies
0
Views
61
"Hello! Good day! Excuse me, I have a question regarding the 1761-NET-ENI. RSLinx has already detected it but it's not connecting to the PLC...
Replies
4
Views
92
Why does the controllogix redundancy modules use a single mode fiber vs multimode fiber?
Replies
1
Views
60
I have a little bit of experience with Allen-Bradley. I have a Micrologix 1500 (RSLogix 500) and a PanelView Plus 7 (FactoryTalk View Studio ME)...
Replies
3
Views
102
Back
Top Bottom