lendyck
Member
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 instruction for the SLC 5/05 PLC.
Len
I have a couple questions related to the MUL instruction for the SLC 5/05 PLC.
- During integer operation, S:13 and S:14 contain the 32-bit signed result of the multiply instruction.
What constitutes an integer (or Float) operation? For example, if Source A is an integer, and Source B is a float, and the Destination is an integer...is this an integer operation? Does it just look at what's in the Destination?
Will S:13 and S:14 contain the signed double integer result even if the MUL result is less than 32,767?
Does the Math Overflow bit (S:2/14) have to be set for the above to work?
Will S:13 and S:14 contain the signed double integer result even if the MUL result is less than 32,767?
Does the Math Overflow bit (S:2/14) have to be set for the above to work?
- Is it possible to use S:13 as one of the sources of a MUL instruction, or will the MUL instruction overwrite what's in S:13 before it reads the data there?
Len