I don't understand your problem. Are you using a RS-xxx to TCP/IP converter?
Your device is a ModBus RTU/ModBUS TCP/ISOTCP(Siemens PLC)?
To read a single variable, use a TPLCTagNumber, To read a set of variables,
use a TPLCBlock+TPLCElement or a TPLCStruct+TPLCStructElement and to read a
String from your device, use the TPLCString Tag.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For example if i want read the variable Active Energi of the PLC number 29 in
the converter 192.168.0.2 then i suppose I will need the nest object with the
next configuration:
TCP_UDPPort1
Host: 192.168.0.2
Port: 502
ModBusTCPDriver1
CommunicationPort: TCP_UDPPort1
PLCTagNumber1
ProtocolDriver: ModBusTCPDriver1
And now I have the dude:
Where I must set the PCL number and the Variable? in PLCTagNumber.PLCSlot or
in PLCTagNumber.PLCStation ?
And where set the variable address to read it? in PLCTagNumber.LongAddress?
And looking the PLC manual which address I must use? 3C3D?
Hi.
This will be my first Scada Aplicacion and i have some questions:
I need connect to a Conversor TCP2RS+ and then we have some CVM-Mini-ITF-
RS485-C2.
I am using the connection:
TCP_UDPPort => to connect with the host 192.168.0.2 to port 502
ModBusTCPDriver => i am not sure if i must change some property in this Object
(i think no)
And now is my big question: Which PascalScada Tags i must use to connect to
the PCL 1 and how to get the variables that are in the PLC
Thx
I don't understand your problem. Are you using a RS-xxx to TCP/IP converter?
Your device is a ModBus RTU/ModBUS TCP/ISOTCP(Siemens PLC)?
To read a single variable, use a TPLCTagNumber, To read a set of variables,
use a TPLCBlock+TPLCElement or a TPLCStruct+TPLCStructElement and to read a
String from your device, use the TPLCString Tag.
Some time ago, I did the following communication setup
TagMBDeviceNode1 -+---> TModBusRTUDriver ----> TTCP_UDP ----> RS-xxx to TCP/IP
+---> ModBusRTU device node 1
| |
| |
TagMBDeviceNode2 -+ +---> ModBusRTU device node 2
| |
| |
TagMBDeviceNode3 -+ +---> ModBusRTU device node 3
Are you doing something like this?
The best regards,
Fabio
This is my System Structure:
Hi.
For example if i want read the variable Active Energi of the PLC number 29 in
the converter 192.168.0.2 then i suppose I will need the nest object with the
next configuration:
TCP_UDPPort1
Host: 192.168.0.2
Port: 502
ModBusTCPDriver1
CommunicationPort: TCP_UDPPort1
PLCTagNumber1
ProtocolDriver: ModBusTCPDriver1
And now I have the dude:
Where I must set the PCL number and the Variable? in PLCTagNumber.PLCSlot or
in PLCTagNumber.PLCStation ?
And where set the variable address to read it? in PLCTagNumber.LongAddress?
And looking the PLC manual which address I must use? 3C3D?
Here is the PLC's manual device http://circutor.es/docs/m98174001-03-05a-
mini.pdf
Thx.
For example if i want read the variable Active Energi of the PLC number 29 in
the converter 192.168.0.2 then i suposse
What's the model of your TCP2RS?
To communicate using ModBus, you must set the following tag properties:
MemAddress: The address of your register, starting from 0.
MemReadFunction: 1=Digital Output, 2=Digital Input, 3=registers, 4=analog
inputs.
MemWriteFunction: 5 to write a single digital output or 15 to write a block of
digital inputs or
6 to write a single register or 16 to write a block of registers.
Even using a TPLCTagNumber, you can use functions 15 and 16, but if
are you using a TPLCBlock, you must use functions 15 and 16 instead of
functions 5 and 6, because the modbus driver don't emulates write of
multiple values using these modbus functions.
PLCStation: Address of your device.
The TCP2RS model is Circutor TCP2RS+

I have not even read one variable but I think I'm close.