AC500 Modbus Master Receiver to variable %MW0.X
Hello, use AC500 with modbus master to send information with the% MW0.X variables. I wondered if it was possible to keep them always using the seven variables.
Thank you have a nice day
Thank you have a nice day
Answers
Hi,
If I understood your question, you can use the following format when declare the variable:
Variable_1 AT %MW0.0: REAL;
That means that the Variable_1 is "connected" to %MW0.0.
If somebody (e.g. HMI) is writing to %MW0.0, Variable_1 will be changed from "outside".
If you write from the PLC to Variable_1, %MW0.0 will be changed
If I understood your question, you can use the following format when declare the variable:
Variable_1 AT %MW0.0: REAL;
That means that the Variable_1 is "connected" to %MW0.0.
If somebody (e.g. HMI) is writing to %MW0.0, Variable_1 will be changed from "outside".
If you write from the PLC to Variable_1, %MW0.0 will be changed
by kstoilov
Hi,
For me your question is not clear. What do you mean with "possible to keep them always using the seven variables." ?
by davrigo Rank: 1615 on 11/10/2018 2:17:27 AM | Like (0) | Report
Hello, use AC500 with modbus master to send information with the% MW0.X variables. I wondered if it was possible to always retrieve them using the same variables.
by kstoilov
What type of Modbus do you have? In case it is COM_MOD_MAST for example, you have to connect ADR to DATA input of the block, than array[7] to ADR block
by kstoilov
The same is with ETH_MOD_MAST
by davrigo Rank: 1615 on 11/10/2018 2:26:03 AM | Like (0) | Report
I do not use any function block, to send the data directly I take the word value to the variable% MX0.1 eg
by kstoilov
I'm sorry, but I don't understand. Yes, if AC500 is a slave, you have to write the variables to %MW0.x.
%MX0.0.1 is the right formats for bit writing. If you write %MX0.0.1 it will write to the second bit in %MW0.0
by davrigo Rank: 1615 on 11/10/2018 2:44:06 AM | Like (0) | Report
I'm sorry it was my mistake. I write directly on the variable% MW0.1 without using any function block. My question was whether it was possible to read using the same variables
Add new comment