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

Hey all, first time poster here. I am wondering if anyone has tried using a Keyence SR-X300 barcode scanner to a Micrologix 1400. Keyence sent...
Replies
0
Views
36
Hello Everyone, I have a issue with communication between two different PLCs. So here is the facts, The Master PLC is Guard Logix 5069 with IP...
Replies
4
Views
91
I’ve been tasked with extracting PLC (logix 5572) realtime data, storing it in a database (anything compatible with our data) and displaying it in...
Replies
0
Views
37
Hi Everyone, I am not proficient in RSLogix 500 so I have a question regarding the evaluation of N7:0 data as an input. So as I understand in...
Replies
1
Views
87
Hi folks, in the alarm manager of Rslogix 5000, the tag-based alarm has been created. But when I tried to change the condition, it was found the...
Replies
2
Views
157
Back
Top Bottom