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

Hi All, I'm just trying to understand the reason behind something I recently experienced. Background: The system contains 4 CompactLogix...
Replies
1
Views
51
I recently did a program conversion from logix 500 to studio 5000 and when machine runs it depends on two ton instructions to keep the machine in...
Replies
17
Views
379
Hello, I am trying to read a barcode scanner input using a cognex dataman 280 barcode reader, store it another string, the compare with another...
Replies
1
Views
68
Hello. Why is my RSLogix 5000 start in grace period mode, even though I have a valid license? I also think I have a decently recent FT Activation...
Replies
3
Views
144
Back
Top Bottom