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".
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 :
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 :
one description ;
one configuration file ;
two routnies to export.
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
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 :
1. Choose the protocol (UnitelWay)
2. Make the connection
3. Is the program located in ProcesSim or located in the automaton ?
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.
Set the Tsx micro for a periodic programming of 10 msec.
Set the connection by leaving only 3 sockets in PLC (2 for ProcesSim and 1 for Pl7 Pro).
Set the connection with the fastest speed according to the possibilities of your equipment.