MUL Instruction

Well, thinking this further, I don't think it should matter if the sub is running or not, right?

This is the only place where D50 gets its value and even if the sub is not running the math should be correct because 360 is a constant and ActualPosition has already update its count.

Could it be a Data Type issue?
 
Where is MAESTRO.ActualPosition getting it's value?


When you monitor the PLC code online, the value you will see in MAESTRO.ActualPosition will, in general, be it's value at the end of the scan. At the time that the MUL instruction is executed, MAESTRO.ActualPosition may have a different value. It executes the MUL instruction with a different value, then MAESTRO.ActualPosition is updated to the value you see on screen.
 
if the sub is not running it could be stale value IE executed when MAESTRO.ActualPosition was .675 which would give you 243 even though you now see the live value of 0.724602 the block isnt using that value since it is not executing the MUL block
 

Similar Topics

Hi, Currently using a MUL instruction (PLC-5) to convert a floating point to an integer to send up a SCADA system. No float comms exist (and...
Replies
11
Views
3,262
I wish I had an AB SLC PLC that I could play with to answer these questions myself, but I don't! I have a couple questions related to the MUL...
Replies
1
Views
5,218
Windows 10, x86_64, RSLogix Micro Starter Lite RSLogix Emulate 500 6.00.00.07 (CPR9) RSLinx Classic 2.57.00.14 CPR 9 SR 3 See the attached ZIP...
Replies
41
Views
10,423
I have an analogue channel coming in which I run from a custom ‘Scaling Block’ that consists of first multiplying the raw counts by a gain value...
Replies
10
Views
2,835
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...
Replies
1
Views
3,055
Back
Top Bottom