J
TwidoSwite, having problem reading multiple registers, I am only able to read four registers regarding of the number I input.
Please see below code, can someone please explain what is wrong?
LD 1
[ %MW20 := 16#010F ]
[ %MW21 := 16#0300 ]
[ %MW22 := 16#0203 ]
[ %MW23 := 16#0292 ]
[ %MW24 := 16#000C ]
LD 1
AND %MSG2.D
[ EXCH2 %MW20:11 ]
LD %MSG2.E
ST %Q0.0
I know this is also probable an easy question, but so far I have not been able to find the bug.
Also, what it would be the easiest way to send multiple read command to the same slave, since I am only able to ready 12 registers per command.
Please see below code, can someone please explain what is wrong?
LD 1
[ %MW20 := 16#010F ]
[ %MW21 := 16#0300 ]
[ %MW22 := 16#0203 ]
[ %MW23 := 16#0292 ]
[ %MW24 := 16#000C ]
LD 1
AND %MSG2.D
[ EXCH2 %MW20:11 ]
LD %MSG2.E
ST %Q0.0
I know this is also probable an easy question, but so far I have not been able to find the bug.
Also, what it would be the easiest way to send multiple read command to the same slave, since I am only able to ready 12 registers per command.