Hi, I have always worked with Rslogix500 and I'm working on a project migrating the code from an old mitsubishi FX64MR to and slc505.
I'm having trouble finding equivalent for the following instruction:
----||----[ROL D3 K1] (The open contact is a bit M98)
Out of the manual, this instruction is rotating left one bit at a time (K1) the number stored at D3 (16 bits number, which changes all the time). Every time M98 receives a pulse the number is shifted to the left.
The only instruction that comes to mind on Rslogix is BSL (bit shift left) as its very similar to what they do; the problem is that if I use it, it would look like this:
File: N7:55 (this can be integer or a word for ex. B3:0)
Control: R6:0
Bit address: (I dont know what to put here as I would usually set the bit that will be writing the high states into the BSL instruction) But the mitsubishi instruction does not "record" from a bit, it just shifts one bit at a time every time M98 makes a pulse.
Length: 16 (bits)
Is there another instruction more suitable for this?
Thank you in advance for your time
I'm having trouble finding equivalent for the following instruction:
----||----[ROL D3 K1] (The open contact is a bit M98)
Out of the manual, this instruction is rotating left one bit at a time (K1) the number stored at D3 (16 bits number, which changes all the time). Every time M98 receives a pulse the number is shifted to the left.
The only instruction that comes to mind on Rslogix is BSL (bit shift left) as its very similar to what they do; the problem is that if I use it, it would look like this:
File: N7:55 (this can be integer or a word for ex. B3:0)
Control: R6:0
Bit address: (I dont know what to put here as I would usually set the bit that will be writing the high states into the BSL instruction) But the mitsubishi instruction does not "record" from a bit, it just shifts one bit at a time every time M98 makes a pulse.
Length: 16 (bits)
Is there another instruction more suitable for this?
Thank you in advance for your time