Hi,
I have configured the Anybus Profibus-Serial Gateway to interface my serial RS 232 based device to a PROFIBUS-DP network.
The gateway continously monitors the configured addresses in the OUT area, when the PLC changes the data in these addresses the corresponding serial RS 232 command is sent to my product, the system works similarly vice-versa, addresses written to the IN area of the gateway are mapped to PLC memory addresses, so data from the device is sent back to the PLC.
I am confused about which option is better suited for a Siemens S7 PLC (or any PLC).
Option 1:
PLC writes to the mapped locations and the gateway sends the data to the serial device.
Can the PLC transfer 2 sets of data (composed of 2 bytes of data) consistently, say something like this...
For example
T PQW 300 //First two bytes (300-301)
T PQW 302 //second set (302-303)
If there is some delay here between the two commands, then the function in my device gets executed twice..
Option 2:
The gateway monitors another address location (called control), after the address locations (4 bytes) are filled in (consequently transferring data to the serial device).
The PLC then writes to the control address (say value of 1), the gateway then transfers the control register data and the device performs the function.
The advantage here is that data updates can be slow to the 4 bytes..
Is the above option 2 possible in PLC programming ??
I do not have any idea of PLC programming, so which option would be best suited ???
thanks
a
I have configured the Anybus Profibus-Serial Gateway to interface my serial RS 232 based device to a PROFIBUS-DP network.
The gateway continously monitors the configured addresses in the OUT area, when the PLC changes the data in these addresses the corresponding serial RS 232 command is sent to my product, the system works similarly vice-versa, addresses written to the IN area of the gateway are mapped to PLC memory addresses, so data from the device is sent back to the PLC.
I am confused about which option is better suited for a Siemens S7 PLC (or any PLC).
Option 1:
PLC writes to the mapped locations and the gateway sends the data to the serial device.
Can the PLC transfer 2 sets of data (composed of 2 bytes of data) consistently, say something like this...
For example
T PQW 300 //First two bytes (300-301)
T PQW 302 //second set (302-303)
If there is some delay here between the two commands, then the function in my device gets executed twice..
Option 2:
The gateway monitors another address location (called control), after the address locations (4 bytes) are filled in (consequently transferring data to the serial device).
The PLC then writes to the control address (say value of 1), the gateway then transfers the control register data and the device performs the function.
The advantage here is that data updates can be slow to the 4 bytes..
Is the above option 2 possible in PLC programming ??
I do not have any idea of PLC programming, so which option would be best suited ???
thanks
a