I need read 3 value from each slave from existing protocol
Answer this question FollowAnswers
You shoudnt uso %MW0.832 but a Word with a value 832 or sumply write 832 to the ADDR input.
In the picture youre actually reaning from ADDR 0, wich is the value of the %MW0.832 address.
Hope i can help.
In the picture youre actually reaning from ADDR 0, wich is the value of the %MW0.832 address.
Hope i can help.
Hi,
Use the variable of type WORD with initial value 832:
COM_ADDR: WORD := 832;
Please note 832 is the decimal value of the address which corresponds to 340h.
In your screen shot %MW0.832 is most probably of type INT and it's value is 0. That will not work.
Use the variable of type WORD with initial value 832:
COM_ADDR: WORD := 832;
Please note 832 is the decimal value of the address which corresponds to 340h.
In your screen shot %MW0.832 is most probably of type INT and it's value is 0. That will not work.
Hi,
I think your variable, connected to ADDR of COM_MOD_MAST block is wrong. Why do you put %MWxx there?
Try with connecting of the following variable to ADDR:
COM_ADDR: WORD := 0;
0 -> put here start address of your first register
variable of type WORD, like constant or variable with initial value = the starting address of the slave registers
I think your variable, connected to ADDR of COM_MOD_MAST block is wrong. Why do you put %MWxx there?
Try with connecting of the following variable to ADDR:
COM_ADDR: WORD := 0;
0 -> put here start address of your first register
variable of type WORD, like constant or variable with initial value = the starting address of the slave registers
Add new comment