Menu

New Aplication

Help
Roger007
2012-09-03
2012-09-28
  • Roger007

    Roger007 - 2012-09-03

    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

     
  • Fabio Luis Girardi

    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.

     
  • Fabio Luis Girardi

    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

     
  • Roger007

    Roger007 - 2012-09-04

    This is my System Structure:

     
  • Roger007

    Roger007 - 2012-09-05

    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

     
  • Fabio Luis Girardi

    What's the model of your TCP2RS?

     
  • Fabio Luis Girardi

    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.

     
  • Roger007

    Roger007 - 2012-09-28

    The TCP2RS model is Circutor TCP2RS+
    Photobucket

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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.