IMPLEMENTING ALARM (LADDER) IN PLC

The following describe how to implement simple alarms in a PLC.
We used a MICRO PLC TSX3722 and a card
TSXDMZ28DR  (16Inputs/12Outputs) but any PLC could be used.

Here is the electrical drawing



The implementation on the PLC is for each input . 2 Inputs used for this example.





The following images showing how to implement the HORN and the LIGHT signalling.






As the figures shows the auxiliarys bits are for the Horn indicator and the Alarm Inputs are for the LIGHT indicator. The programmer can also add as many alarms as he wish to this rungs either directly or as a sum of alarms. It is left to programmer how to achieve this, but consider the limitation of the rung when using a PLC like the MICRO As you could see there are 7 vertical and 11 horizontal positions. In the figures several inputs as alarms (errors - thermal relay etc) and auxiliaries added to demonstrate how to add more than 7 vertical contacts.



PUMPS CIRCULATION FOR FOUNTAINS APPLICATION

PUMPS CIRCULATION FOR FOUNTAINS

This is an application which consists of 3 pumps circulate per 2 a 4th filter pump and a 5th waste water pump for controlling a fountain. The application was developed with Zelio Logic SR2B201FU with real time Clock and Display capabilities.

The requirements are

1) 3 Pumps working per 2 in circular rotation (1-2) , (2-3), (3-1) for scheduled time during the day

2) 1 Filter Pump which running schedule

3) 1 waste water Pump which run with a level sensor command

4) 1 electrovalve which open with a filling level sensor

5) 1 low level sensor protecting the 4 pumps for dry working

6) 1 Voltage detector

Schedule program for the 3 pumps with 1 zelio button is:

1st program : (08:00 – 14:00) and (17:00 - 24:00)

2nd program : (07:00 – 15:00) and (17:00 – 01:00)

3rd program : (07:00 – 16:000 and (17:00 – 01:00)

4th program : (07:00 – 01:00)

Schedule for 4th filter pump is 2 hours stop/ 1 hour run per day

INPUTS

I1 waste water level sensor  - NO

I2 Voltage Detector and Emergency Stop - NC

I3 Dry (Low Level) sensor – Deenergise Pumps – except waste water pump  - NC

I4 Filling level sensor (Valve activation) - NC

I5 Thermal relay Pump No1 - NC

I6 Thermal relay Pump No2 - NC

I7 Thermal relay Pump No3 - NC

I8 Thermal relay filter pump - NC

I9 Thermal relay waste water pump - NC

I10 Reset Button - NO

Z1 Zelio Start and Select Schedule program button . Position 1 Stop. Other positions 2 to 5 schedule program running.

NC : Normally close contact  - NO : Normally Open contact (external)
OUTPUTS

O1 RUN Pump No1

O2 RUN Pump No2

O3 RUN Pump No3

O4 RUN Filter Pump

O5 RUN Waste water Pump

O6 Filling Valve command OPEN

O7 Alarm Horn

Note: The program needs a latch at the Z1 cam encoder in order to restart after a power failure. It is left upon the user to decide if this requirement will  be added . In this application the customer have chosen NOT to have that capability. A manual restart needed . Alarm with horn when power voltage fail
You could request for the program

MICRO TELEMECANIQUE P.L.C CONNECTION WITH PC THROUGH MODEMs - OLDER VERSION

ATTENTION TO THE READER
NOTE : THIS DOCUMENT IS MOST FOR EDUCATIONAL PURPOSE ONLY, AS THE APPLICATION WAS DEVELOPED WITH PRIOR VERSIONS OF MICRO - PL7 SOFTWARE AND WITH NO GENER MODEMS. THE RECOMMENDED CONNECTION IS THAT WITH GENER OR ETIC MODEMS OR ANY OTHER MODEM THAT SCHNEIDER ELECTRIC RECOMMEND. YOU COULD FIND THE APPLICATION WITH GENER MODEMS HERE AND THE APPLICATION WITH ETIC MODEMS HERE
The Application files make it possible to implement communications of telemaintenance
and dialogue inter PLCs

In this application 2 modems MultiTech Systems - Model MT2834ZDXle was used
For more information on the specific modem manuals of multitech
http://www.multitech.com//DOCUMENTS/manuals

The settings - The AT commands that modems must have are:

MODEM PLC

ATV1B0$SB9600$MB9600$EB0&E0&E10&E3&E14E0Q1&D0%DC1&W

These commands can be send to the modem of the PLC with a program to communicate with PC, like the HyperTerminal, ProComm, etc.
The connection cable modem - PLC is TSXPCX1130
In the Hardware Configuration of PLC programming port should have selected the following.

Unitelway Link
Type Master
8 Data Bits
1 Stop Bit
Parity None
Τransmision speed 9600 bit s/s
Wait time between 100 – 200 ms. For example, 140ms.


MODEM P.C

At PC Unitelway Driver must be choosen "Modem"



The settings – HAYES Initialization are

ATV1E0B0$EB0&E0&E3&D0&S0$SB9600$MB9600X1D%DC1


At the "Telephone Number" put the number you want to call which is connected with the remote PLC
Becareful if a telephone center exist.

With OK go back to the previous image, and select the menu

FILE -> ADVANCED CONFIGURATION having the following options.


CAUTION: To be connected via modems with PL7 V4.1 & V4.2 should have the following drivers:

UNI-TELWAY Win2000/98 V1.4 IE08
UNI-TELWAY WinNT4 V1.8 IE15
UNI-TELWAY Win95/Dos V7.8 IE18
UNI-TELWAY Dos V7.4 IE14

Also, the use of the modem in conjunction with Magelis terminals from the port TER - AUX is not possible because the Magelis not respond by changing the Parity to None, in which case their combined use is impossible. For the solution of this problem must be used a modem that has the ability to pass 11bits (8 data, 1start, 1stop, odd parity), so then you need to configure it according to instructions and commands given in the manual.
A Modem which has the above feature is that of the company GENER.
(Schneider Alliance) model GENindus
For more information you can visit GENER site. www.gener.fr
For more information about PLC manuals visit http://www.schneider-electric.com  site

The above description could be altered to newest versions of PL7 software and Unitelway Driver
It is the rensponibility of the developer to use the above.
Note: The recommended connection is that Schneider Electric Support and this document is NOT a replacement of the official supported documents or modems

MAGELIS TERMINAL ADDITION IN UNITELWAY NETWORK TO A SLAVE PLC

Suppose we want to insert a Magelis terminal to a Slave PLC which is connected to a network Unitel-way. To the Slave PLC have given an address AD0, which is defined in the network. To be able to connect the Magelis at the Slave PLC, do the following: Select the Menu Configuration -> Equipment Symbols ... and get the following picture (Fig. 1),


Select Modify and displays the next image (Fig. 2) which will change the existing usual (0,254,0,254,0) which referred to the master PLC, and give one another Symbol name of your choice.




A simple network Unitel-way without PCMCIA card is not feasible to achieve the connection because the number of Slave PLCs is limited. The addition of two or more terminals Magelis consists networks using Unitel-way card PCMCIA RS485 (TSXSCP114) adjustable to 32 Stations (Magelis - PLC)

In addition the cable XBTZ968 which is used for the connection between Magelis and Slave PLC must be modified or added by a serial cable specially constructed taking in mind the Slave PLC address (it is recommended to constructed a serial cable to added to the existing XBTZ968)

For further information how to achieve the connection please contact

TWIDO ZELIOS & TESYS LU9GC3

Description: How to connect Twido with tesys and zelios using TESYS LU9GC3 under Modbus RS485

In 1st picture there is the connection of a Twido modbus (any Twido model)
1 : Modbus RS485 Communication module LULC031
2 : Connection cable VW3A8308R with RJ45 connector on each end. Used to connect TESYS and distribution unit
3 : Modbus distribution unit LU9GC3. Used to connect the Twido and multi TESYS starter controllers via RJ45 connectors

 The 2nd picture is showing the internal wiring of the modbus distribution unit



The 3rd picture is showing how to connect  a Twido Master cpu with 2 or more (up to 29slaves) slave Zelios (internal wiring) using the modbus spliter box Tesys LU9GC3. The polarization resistor must be manage by the master.
Note . Resistors of 4,7KΩ are implanted inside Twido CPU .


At the 4th picture is showing the above implementation on how to connect them in reality. The modules that are neccessary to implement this connection are :
1 : One Twido master Cpu (any model)
2 : Two (or more) Zelios with their modbus extension module SR3MBU01BD
3 : One Tesys LU9GC3 modbus RS485 distibution unit
4 : Two cables VW3A8306R03
5 : A connector unit VW3A8306TF03
6 : Two termination resistors VW3A8306RC



The implementation of the program will be added soon or in a next post 

Programming/animating Twido via existing RS485 bus.

Description:
- This document describes the possibility to connect Twidosoft to Twido on existing RS485 bus for programming or monitoring purposes using Modbus communication protocol. Primary (built-in) or additional RS485 communication adapter may be used.

Hardware
One or more Twido controllers (optionally with additional RS485 communication adapter installed.)
TSXPCX1031 serial programming cable Or TSXPCX3030 USB programming cable
mini-DIN female connector
Software
MS Windows XP SP1 / SP2
Twidosoft v3.2
Twido fw. 3.20

1. Tested configuration

You will need an adapter (mini-DIN to free wires) in order to connect TSXPCX 1031/3030 programming cable to screw terminal block.
Adapter wiring:

Create an adapter using spare mini DIN female connector.

Use pins 1, 2, 7 (data+, data-, GND). It’s necessary to connect external 5V DC power supply to pins 8 (5V) & 7 (GND) to supply the RS232<->RS485 converter inside the cable. It’s possible to use 5V from PS/2, USB or Twido’s mini DIN connector

Notes: -When connecting to Port 1, pins 5 (DPT) and 7 (0V - GND) must be interconnected, otherwise Twido sets the port for communication with Twidosoft (Address 1, 19200kb/s, no Parity) and ignores the user setting.

-Other modbus devices than Twido may also be present on the network.

2. Setting up connection in Twidosoft

You will need to modify the connection preferences: File – Preferences – Connections Management


Connection type: Serial for TSXPCX1031 serial programming cable
USB for TSXPCX3030 USB programming cable

IP / Phone: Corresponding COM or USB port
P-Unit / Address: @ - This setting lets you choose the address before every connection.
Baud rate, Parity, Stop Bits....: Use the exact setting of the network you wish to connect to.
Confirm the changes, select your connection from the drop-down menu and confirm again.

3. Connection

Set the rotary switch on programming cable into position 1 – OTHER MULTI.
Click on the connect button.
Select the address of PLC you want to connect to.
Confirm.

Note: The line must be silent while connected with Twidosoft. If there is any other communication, the connection will fail.
This connection is not suitable for firmware update (possible only through Port 1 with default comm. setting). Communication failure would result in a permanent damage to the controller

MONITOR PRO TAG COUNT CLARIFICATION

Hardware Standard PC
Software MS Windows XP SP2
Monitor Pro 7.2
Monitor Pro 7.6

MONITOR PRO 7.6


The total tag count can be found by right-clicking on the application in
Config Explorer, slide down to "View" and then open "Application Size".
This returns the total number of tags the app is configured for and the total
number of user defined tags.
The total tag count restriction on a Monitor Pro Server is based on the
user-defined tags. Schneider Electric defined global tags such as
SECTIME are not considered user defined tags are excluded from the total
user defined tag count limit.
e.g. If a customer has a 1024 total tag count license then he can have 1024
user defined tags.
I/O tags are defined by the number of tags entered in a device driver,
Ioxlator, or ECI table. It is not based on the number of registers addressed
in the PLC. For example, if you wants to read HREG 40001 into MyTag1
and into MyTag2, that counts as 2 I/O tags even though you are reading
from the same register in the PLC. In other words if the user defined 5 read
tables with 10 tags each in his netdtl driver table, then he has configured
50 I/O tags.


MONITOR PRO 7.2


The total tag count can be found by right-clicking on the application in
Config Explorer, slide down to "View" and then open "Application Size".
This returns the total number of tags the app is configured for and the total
number of user defined tags.
The total tag count restriction on a Monitor Pro Server is based on the
user-defined tags. Schneider Electric defined global tags such as
SECTIME are not considered user defined tags are excluded from the total
user defined tag count limit.
e.g. If a customer has a 1024 total tag count license then he can have 1024
user defined tags.
I/O tags are defined by the number of tags entered in a device driver,
Ioxlator, or ECI table. It is not based on the number of registers addressed
in the PLC. For example, if you wants to read HREG 40001 into MyTag1
and into MyTag2, that counts as 2 I/O tags even though you are reading
from the same register in the PLC. In other words if the user defined 5 read
tables with 10 tags each in his netdtl driver table, then he has configured
50 I/O tags.
Unfortunately no tool exists to display the I/O tag count. The user has to
manually count his I/O entries.

ConneXium Ethernet Gateway TSXETG100

Mount the unit.

❏ Determine the control power method and connect the power.
❏ Configure the Ethernet communications settings with a web browser (using an Ethernet crossover
cable) or with HyperTerminal (using a null modem cable, which is included in the TCSEAK0100
configuration kit [sold separately]).
❏ Configure the serial ports.
❏ Configure the device list.
❏ Wire the serial ports.

DESCRIPTION

1. 24 Vdc control power connection
2. 10/100BaseTx (802.3af) connection
3. LEDs:

Ethernet:
• LK: Active link
• TX: Transmitting data
• RX: Receiving data
• 100: Link speed. 100 Mb = ON, 10 Mb = OFF

Serial:
• RS485: RS485 mode = ON, RS232 mode = OFF
• TX: Transmitting data
• RX: Receiving data

Power/Status
4. DIN rail release
5. Reset button (press to reboot the ETG; no data is lost)
6. RS485 connection
7. Dip switches
8. RS232 connection


Ethernet Setup Using HyperTerminal

1. Attach a null modem cable (see below).
NOTE: The RJ45 to DB9 adapter and the Ethernet crossover cable are included in the
TCSEAK0100 configuration kit

2. Click Start > Run, then type hypertrm.
3. In the Name text box, type a name for the new connection (for example, ETG config), then click OK.
4. In the Connect using drop-down list box, select the computer COM port you will be using, then click OK.
5. Set the COM properties as follows: Bits per second = 19200, Data bits = 8, Parity = None, Stop bits =1, and Flow control = None.
6. Click OK.
7. Start the ETG Setup Utility:
a. Cycle power or press the reset button on the ETG.
b. While the green Power/Status LED blinks rapidly, press Enter on the computer keyboard to access
the setup utility. See Table 2 for a description of the setup options.
A B NOTE: The Power/Status LED stops blinking after 5 seconds.




RS232 Serial Port

NOTE: The ETG pinout for the RJ45 (RS232) is compliant with the EIA/TIA-561 standard.
To ensure proper connections with other Schneider Electric products, examine the wiring for each device. See the wiring instructions on the ETG100 Technical Library CD for more information,
or contact your local Schneider Electric support representative.

The RS232 port is used to configure the ETG network parameters, and also can be used for serial
communication using Modbus. The ETG RS232 port is wired as a data terminal equipment (DTE)
device and uses a standard RJ45 connector.

NOTE: An RJ45 to DB9 adapter is included in the TCSEAK0100 configuration kit (sold separately)
for use with an Ethernet crossover cable.



VIJEO LOOK V2.6 FULL UNINSTALL

The Puprose of this post is to provide information how to
perform full uninstall or how to reinstall Vijeo Look software.
Standard PC with the Vijeo Look V2.6 requirements with MS Windows XP SP2
Vijeo Look 2.6 (any package tags size)
 
It could happen that Vijeo Look software package is corrupted and must be reinstalled. To perform reinstallation you have to uninstall all software components and manually delete few files located on “C:” drive like “Vijeo Look”, “OFS” folders in the “Program Files” folder, and windows registry keys. 

Before doing uninstallation first is mandatory to backup your current license to USB Flash Disk.
Then launch Start->Control Panel->Add or Remove Programs and uninstall following components:
Vijeo Look V2.6
SA PLC USB Driver
SA MODBUS Driver
SA UNITELWAY WDM Driver
SA Driver Manager
OPC Factory Server
OFS Configuration Tool
Microsoft SQL Server Desktop Engine
Microsoft .NET Framework 1.1 (including all language packs)
Java 2 Runtime Environment Standard Edition




The following picture could see the drivers to be uninstall




And so on....After unistallation of all packages, restart the PC.
Then delete manually following folders if still exist:
C:\Program Files\Schneider Electric\Vijeo Look
C:\Program Files\Schneider Electric\OFS
C:\Program Files\Schneider Electric\Database Manager

Launch Windows Regedit and delete following entries:
HKEY_LOCAL_MACHINE\SOFTWARE\Schneider electric\Vijeo Look
HKEY_LOCAL_MACHINE\SOFTWARE\Schneider Electric\OFS
HKEY_LOCAL_MACHINE\SOFTWARE\Schneider Electric\CDOFS
HKEY_LOCAL_MACHINE\SOFTWARE\Schneider Automation SAS\OFS Configuration Tool
HKEY_LOCAL_MACHINE\SOFTWARE\Schneider Automation SAS\OPC Factory Server

Delete manually all files that fit following masks (where “?” means any character) and are located in c:\windows\ folder
164???s
169???s

Vijeo Look is fully uninstalled now.

If you would like to install Vijeo Look again, you can continue as described:

 Start the standard installation procedure.
After Vijeo Look installation you must launch “Vijeo Look” before you will start other programs (Registration Tool, OPC Factory Server,OFS Configuration Tool or others).
You can restore your license using Vijeo Look Registration Tool.

NOTE : This is for educational purpose only
This procedure describe how to uninstall Vijeo Look V2.6 from the PC.
This is not a recommendation of official Schneider Electric manuals
on how to install or uninstall Vijeo Look V2.6
The user must has knowledge on PC registry to delete the proper entries that described.
Failure or wrong entries deleted may corrupt the PC registry which could result in a PC malfunction.

TWIDO with CANopen multi turn Encoder

This example describes configuration of Twido PLC with Osicoder XCC-3510PS84CB CANopen multi-turn absolute encoder.

Hardware Any Twido controller except
TWDLC•A1•DRF

TWDNCO1M CANopen master SV2.0
Osicoder XCC-3510PS84CB Absolute
CANopen encoder
Software Twidosoft 3.5
Windows XP SP2

1. Tested configuration

2. Features

XCC-3510PS84CB in default configuration sends information about actual position on reception of synchronisation message.
Twido CANopen master doesn’t support SYNC object. Therefore it’s necessary to switch XCC-3510PS84CB to send information about position cyclically. This is done by writing a value in milliseconds to 16bit object 6200h sub0 (Cyclic timer). That makes the encoder send position value with selected period ranging from 1 to 65535ms.Writing of Cyclic timer value is done via Service Data Object (SDO). It requires a communication table to be created in internal memory of Twido and then sent using CAN_CMDx command. It’s necessary to repeat this procedure after every power cycle of Twido and/or encoder.

REQUEST for the code to jupiter071@gmail.com

CONNECTING PLC WITH GSM MODEM FOR ALARM ANNOUNCEMENT

ASSOCIATION PLC WITH GSM-MODEM

SMS MISSION FOR ERRORS REPORT

How can we have remotely, when an alarm happens, the report of the error in the installation?
Simply, by sending an SMS message alarm from PLC in our mobile.

Below we describe the logic and message sending, reporting an error.

The SmsAlarm.stx program shows us how can we send SMS and find errors. In this program we are able to recognize only three errors, for example. Of course we can identify more, and that depends on the application and severity of errors (Alarms). It is in the hands of each developer to create in the PLC a database-constants, which correspond to specific error-Alarms.

Also this example is not binding, except the codes to send in GSM - MODEM to send the SMS message. Thus it can be changed depending on the application except for certain items to be analyzed.

The application has been made on a series PLC MICRO TSX37. Communication with the GSM MODEM is through the cable programming TSXPCX1031 with the trimmer in option 3. We also need an additional cable, which you must build yourself, but it is very simple.
On the side of GSM - MODEM a male connector VGA 15-pin must be used, while on the side of the PLC, to connect the cable TSXPCX1031 must be used a male serial connector 9-pin, and the connections are:

9 – pin 15 – pin

5 <--> 9

3 <--> 6

2 <--> 2

So Simple

The GSM - MODEM that we have chosen is from the company WAVECOM
The model has code order WMOD2B - M1203A. For anyone interested in more information , on the Site Wavecom.com, can find the manual of the product.

The program distinguish two PRINT_CHAR commands.

In the first command


After selecting a channel in the PLC, (ADR # 0.0.SYS - From TER) the code AT + CMGS is the command necessary for the GSM - MODEM, to send SMS, while the numbers where are between "  " is the number of mobile in which we send out the SMS. The Code $R (CR = 0D - Ascii Hex) is the Return.
The % MW120: 4 is the reference words for communication, which you can change.

NOTE: The channel selection (ADR # 0.0.SYS - From TER), the code, the phone number, and the code $R is absolutely binding and must be placed exactly as you can see them in the command.

In the second command, and after a delay of 500ms (TP = 500ms) as noted in the program


The %MB200: 20 is equivalent to %MW100: 10. In these words, placed as seen in the program, the initial commands  (the command Operate), the constants describe the current message that we want to send. That we putting in %KWs the message we want to send (from the Application Browser select Variables--> Constants --> Words). Caution should be taken, each character must be written with the corresponding HEX code from the ASCII table. Something else to pay attention, is that we must engage a specific length of characters and must in the end of each message to devote a %MW to write the code 16#1A00, which is necessary to convey the message (close this message).

Also in the Hardware Configuration of the PLC in COMMs must be chosen for the Channel 0 "Character Mode" as shown in the program.

 Care must be taken from the developer in every application the code used. It is the rensponsibility of the developer to use the code properly in his application

You could REQUEST for the code

UNITELWAY NETWORK

UNITELWAY NETWORK

Suppose we want to exchange information between two PLCs via network UNITELWAY. The following figure (Fig.1) shows a circuit of both PLC. Two TSXPACC01 placed to protect the TER entrances of each PLC by exogenous risk factors (hypertension, overvoltage etc.) and are very necessary


Figure 1

At the following figure (Fig.2), we can see the configuration needed to addressing the 1st PLC
This picture listed for the Master PLC. To display the image below, do the following steps:
In the PL7 Application Browser, application has already created, select Configuration -->
Hardware Configuration.
The Hardware appears and double-click on the shape of the TER which is displayed below the image.
In option "select CHANNEL" select CHANNEL 0.
If PLC PCMCIA card is installed and we want to use it then select CHANNEL 1.
Next choose the type of communication that used, in this case UniTelWay.
Then choose the "Type" --> Type Master.
Below the latter option see this option "Number of slaves" = 8 indicating the number of Slave PLC, from 4 to 8 Addresses Slaves. (A PLC can have from 1 to 3 addresses depending on the application. The position 0 is bound by the Master CPU, and the 1,2,3  for a device programmer (eg PC) .



Figure 2

Whole can be connected up to 5 Slave PLC, but if you connect a Magelis terminal, then limited to 3 Slave PLCs, because Magelis binds 2 Addresses.
If you use PCMCIA card then the total number of Slave addresses is about 98.
Below we see Figure 3, which refers to the Slave PLC.
We make the same adjustments but also set the option "Server Address AD0" to 6.
It is best to begin the addressing of PLCs by this specific address (if other used).
We can introduce a Magelis terminal to the existing network.
In this example we will follow the specified address and we will see how to put together the basic commands for data exchange.



Figure 3

The following figure (Fig.4) shows the commands necessary to achieve communication between the PLC network UNITEL-WAY


Figure 4

Suppose you want to read three words from the Slave PLC using the command
READ_VAR (ADR # 0.0.6, '% MW', 1,3,% MW10: 3,% MW200: 4)


ADR # 0.0.6: the destination address (Slave PLC), Module = 0, Channel = 0, Ad0 = 6

'% MW': is the type of data (internal words)

1:% MW1 is the Slave PLC 1st % MW

3 is the total number of words to be read from the Slave PLC

So you read the following 3 words - % MW1,% MW2,% MW3.

%MW10: 3: is the area in the Master PLC to place the above three words
i.e positions % MW10,% MW11,% MW12, respectively.

%MW200: 4: activity bit, report, length.


Now suppose that we want to write three words to Slave PLC using the command
WRITE_VAR (ADR # 0.0.6, '% MW', 20,3,% MW30: 3,% MW250: 4)

ADR # 0.0.6: the destination address (Slave PLC), Module = 0, Channel = 0, AD0 = 6

'%MW': is the type of data (internal words)

20 means the %MW20 the Slave PLC 20th % MW

3 is the total number of words will be written to the Slave PLC

So you write the following 3 words % MW20,% MW21,% MW22.

% MW30: 3: is the area in the Master PLC from where they would write the above three words in the Slave PLC, ie positions% MW30,% MW31,% MW32, respectively.

% MW250: 4: activity bit, report, length.

MASTER - SLAVE

READ

% MW10: 3  <-- % MW1: 3

WRITE

% MW30: 3 -- > % MW20: 3


Figure 5

In Figure 5 we see the internal view of TSXPACC01

S1: Selector of how the PLC (Master or Slave) which is attached the TSXPACC01
S2: Selector finish line BUS.
JA and JB: connectors TSXCSA 100/200/500 cable of the BUS.



Figure 6

Specific configuration options in our example.
For the Master PLC: S1 place in OFF postion and S2 in the NOT OFF.
For the Slave PLC: S1 = NOT OFF, S2 = NOT OFF.


Figure 7

In Figure 7 we see how to connect the cable at the interior connectors of the
TSXPACC01, and at figure 8 the communication connectors of the TSX P ACC01

Figure 8

Summary:
This is an example of how to use the READ_VAR and WRITE_VAR commands and also how to configure the PLCs to form a UNITELWAY network. This code should be altered or inserted respectively in your specific application. It is your rensponsibility to use the example properly in your applications
For more info visit Schneider Electric Site


MICRO TSX37 USE OF INCREMENTAL ENCODER WITH INTEGRATED COUNTER AT CHANNEL 11.

MICRO TSX37
USE OF INCREMENTAL ENCODER WITH INTEGRATED COUNTER AT CHANNEL 11.

At following figure 1 is the connection of the P.L.C with TELEFAST 2



Figure 1




Figure 2

At our example we used P.L.C Micro TSX3722 and encoder XCC1510PR01K
with 11-30V/push-pull/100cpt

In Fig. 2 connection with the sensors, which is similar with those of the ENCODER
Cables and color of encoder and TELEFAST 2

RED = 24Vdc - 26
BLACK = 0V - 27
GREEN = Α - 4
BROWN = Α - 1
YELLOW = Β - 8
ORANGE = Β - 10
And we connect the Α-, Β-, και 0V together. Ζ and Preset are Not Connected.

The small program is analysed
The small code program named INCOUNTERUPDOWN.STX and you could download it HERE
We use two Setpoints (High & Low). When passed from High setpoint an output is activated %Q2.1. Then when the rotation of the movement will inversed, then passing through Low setpoint another output will be activated %Q2.0, and finally when under 15 steps ouputs are zeroing.
We used %MD0 for the Highsetpoint and %MD2 for Lowsetpoint which are give values at the following

%MD0=%MD0.11.10 Value of High Setpoint
%MD2=%MD0.11.12 Value of Low Setpoint όπου
0 = Module
11 = Counter0

Making Enable the Counter setting the %Q0.11 with a contact %Ι1.4

Making Preset the Counter setting the %Q0.11.1 with a contact π.χ %Ι1.7

Making Reset Preset τthe Counter setting the %Q0.11:X1

With %I0.11.9 we know every momment the direction of movement of the Εncoder.

%I0.11.7 (Current Value >Highsetpoint) Encoder Value has passed the Highsetpoint

%I0.11.8 (Current Value>Lowsetpoint). Encoder Value has passed the Lowsetpoint

Finally with WRITE_PARAM %CH0.11 we could change the High and Low setpoints giving values at %MD0 & %MD2.

In the following figure 3 is the Hardware Configuration of the PLC Internal Counter.


Figure 3

Use of the Incremental encoder is only applied at Counter0 (CNT1 – CHANNEL 11)

For more info visit the site schneider-electric at the category
P.L.C Micro . Hardware Installation Counting.

How to import and export user data to/from Twido PLC

Title: How to import and export user data to/from Twido PLC

Description:
- This paper describes a workaround that allows exporting and importing user memory data from/to Twido controller using Twidosoft/Twidosuite animation table editor and an external spreadsheet with XML support.

Hardware any Twido controller
Software Twidosoft 3.5 or Twidosuite 1.2
MS Excel (tested with Excel 2003 SP2)  

1. Export of data

1.1. In your application create an animation table containing addresses you want to export values from.

1.2. Copy current values to retained

Twidosoft:
 

Twidosuite:
 
 
 
Figure 1: Copy current values to retained
 
1.3. Save/export your animation table to disk



Figure 2: Saving *.tat animation table file to disk

1.4. Open the *.tat file in MS Excel as XML list


Figure 3: opening of the animation table file in MS Excel

1.5. The file is displayed in Excel in form of a table, very similar to animation table in Twidosoft/Twidosuite


Figure 4: Data exported from Twido PLC displayed in Excel
 
2. Import of data


2.1. Go through steps 1.1, 1.3, 1.4 and 1.5.

2.2. Modify values in “RetainedValue” column of the table.

2.3. Save the file as XML data to keep the structure of your file


Figure 5: Saving of modified animation table

2.4. Rename the file from *.xml to *.tat

2.5. Open/import the modified animation table in Twidosoft/Twidosuite


Figure 6: loading/import of animation table
 
2.6. Use the button to copy retained values to current values




Figure 7: copying retained values to current values

3. Summary

This procedure can be used to get values from/to Twido PLC. Manipulation with a table in spreadsheet is more convenient than manual modification of animation table in Twidosoft/Twidosuite..
Length of animation table is restricted to 64 rows. It’s possible to have multiple animation tables in Twidosuite. Trying to write retained values to objects that are not writable will result in a non-critical error.\

All information provided in this document is correct to the best knowledge of the author. This approach was designed and tested in laboratory conditions. The environment influences behaviour of electronic devices and therefore the user takes full responsibility for applying presented solutions.