Connection with the PLC

Tests validated on the Tsx Micro and Premium.

Two fundamental steps, the hardware configuration and the addressing.

Accomplish the PLC configuration, for this choose "Hardware configuration of Tsx Micro".

Config_tsx.jpg

 

Config_tsx2.jpg

The hardware configuration must be the same that the configuration in the PL7 software.

The envisaged cards are "On/Off" I/O. One word will use for analog I/O.

After validation :

 Sous_routines.jpg

If you have an already accomplished configuration, open it by clicking on the icon "Configuration".

For the example, the generated files are located in the directory "Applications\Liaison Tsx\Configuration3".

 

 

Four files :

image377.gif

Here is the content for the file configuration.txt

- description of the Tsx configuration

- Slot 1 : Input card of 16 bits

- Slot 2 : Output card of 12 bits

- Slot 3 : Input card of 16 bits

- Slot 4 : Input card of 16 Bits

- Slot 5 : Output card of 16 Bits

- ProcesSim has just created 2 files of synchronization between Tsx PLC and the PC.

Export these sub-routines in PL7.

      - The sub-routine Sr10 is the "Begin routine" of PL7 software.

      - This sub-routine (Sr10) must be called first.

      - It manages different modes and treatment of your program PL7.

      - In grafcet mode, it's the first routine to call in the preliminary stage "Prl".

      - Sr11 manages the behaviour in the program end.

      - It must absolutely necessary be called at the end of program.

      - In grafcet mode, it's the last routine to call in the stage "Post".

 

Remarks :

      - The words from Mw100 to Mw200 and the sub-routines Sr10 and Sr11 are reserved for synchronization between the PLC and ProcesSim.

      - The hardware configuration in the PL7 must be the same that the description above.

 In PL7 :

      1) Realise the hardware configuration ;

      2) Export Sr10 and Sr11 ;

      3) Don't forget to call Sr10 and Sr11 that "encircle" your program

      4) Program your application

      Good work.

The addressing Menu : Parameters - Addressing of Tsx Micro

Address by Drag and Drop

TSX_structure.jpg

Remark : To one analog word corresponds a memory word.

Mw101 is used for analog inputs and Mw141 is used for analog outputs.

It is these values which you take into account in your PLC program.

 

Connection with the PLC :

As soon as you have completed the operative part in ProcesSim :

 

oeufTSX.gif                 1. Choose the protocol (UnitelWay)

 image399.gif             

 2. Make the connection

liaison200_044.gif             3. Is the program located in ProcesSim or located in the automaton ?

 

liaison200_055.gif            4. Is the driving of the operating part simulated or real ?

 

If you choose to drive the real operative part, ProcesSim can serve as supervisor.

 

Tips for increase the communication performances between the PLC and the computer.

 

 

cycle_plc.jpg