You are on page 1of 28

Switching & Controlling LoB

Topic: How to USE TeSys T Custom Logic

Presenter Jean-Rene PIRIS


Date: update August 2015
TeSys T Features and Custom Logic

●General information
● TeSys T includes pre-defined modes and larges possibilities to adjust
parameters by configuring the product with SoMove.

● Before deciding to customize with specific Custom Logic, make sure


you cannot meet customer needs with pre-define mode and accurate
configuration

● You can also easily change Input/Output behavior using only the Logic
Input and Logic output dedicated area in pre-defined programs

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 2
Main objective

To know the basics how to customize a TeSys T for answering


a customer's specification and to download the new behavior
into TeSys T protection relay.
Prior doing Custom Logic you must have from customer clear
and written specification describing step by step customer needs

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 33
Configure TeSys T protection

Contents

● Environment of Custom Logic


● Programming in custom blocks
● Programming in structured text
● Custom mode exercises
● Download an application into TeSys T
● Questions/Answers

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 44
TeSys T is not a PLC !
PLC TeSysT
(typical) (custom logic)
Yes, many.
Tasks Periodic
(cyclic, periodic, event)
Reading inputs
Inputs/outputs
Execution
Task flow are not synchronized
Setting outputs
with program cycle
Idle
Yes (symbolic names, NO. (Only memory
Variables
structures) addresses)
Instructions for cycles Yes (FOR-NEXT, REPEAT, etc.) No
Conditional Yes (IF-THEN-ELSE), even
Limited (ON_SET, ON_xxx)
instructions nested
Monitoring variables Yes (watch tables) No
Debugging
(stop exec., force Yes No
variables)

Programming comfort

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 55
The environment in SoMove
● 1. Configure Tesys T in Custom Mode with the parameter liste “main settings”

● 2. Select Custom Mode and choose your Custom ID = program number


This number should be absolutely between 256 and 511.

● 3 Access to Custom Logic Editor by the menu “Custom Logic” to create your
program.
You have two different sheet:
● Custom logic
● FB diagram

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 6
Relation between pre-define id and Custom
Logic id’s
● If you want access to specific setting ( transition time out, Star/Delta…)
for each pre-defined mode when using custom logic you must respect
the table bellow when choosing your custom logic ID.

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 7
Programming functions blocks

Pre-defined function

Read a value from memory


Area ( bit or word format )

Mathematic operation

Logic operation

Write a value into memory


Area ( bit or word format )

At this stage, you discover the different tools and where to find them
to build your Custom Logic complying to your customer's specification

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 8
Programming functions blocks (cont'd)

Here are the different functions blocks:


- Timer ( in Seconds and Tenths of seconds )
- Latch
- Counter
- Multiplexer

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 9
Programming functions blocks (cont'd)

Here are the different Input blocks:


- TeSys T register or bit ( Register address must match TeSys T mapping )
- Temporary register or bit ( Temporary Register value between 0 to 69 )
- Non Volatile memory register or bit ( Non Volatile Register value between 0 to
31 )
- Constant word or bit ( in Word format or bit )

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 10
Programming functions blocks (cont'd)

Here are the different computation functions block:


- Addition , Subtraction
- Multiplication, Division
- Comparison

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 11
Programming functions blocks (cont'd)

Here are the different input block


- Or ( 4 different bit )
- And ( 4 different bit )
- Logic Not ( bit inversion )
Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 12
Programming functions blocks (cont'd)

Here are the different Output blocks:


- TeSys T register or bit ( Register address must match TeSys T mapping )
- Temporary register or bit ( Temporary Register value between 0 to 69 )
- Non Volatile memory register or bit ( Non Volatile Register value between
0 to 31 )

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 13
Programming functions blocks (cont'd)
Steps to follow to Insert and Configure your blocks

To insert block in the grid, you click on Input block


you want using and drop it in grid

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 14
Programming functions blocks (cont'd)
Steps to follow to Insert and Configure your blocks

You select the bit you want to read in selected register

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 15
Programming functions blocks (cont'd)
Steps to follow to Insert and Configure your blocks
Right click on Block function
and on Add comment open
new area in left windows
Click on “New text” open
windows below and you can
set your own text

You can also add some comment in each individual block

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 16
Programming functions blocks (cont'd)
Compilation in SoMove

Before downloading of the program you should convert the function


block into Structured Text.
The program can be only transferred in structured Text into TeSys T.

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 17
Programming structured text
Pre-defined program in SoMove

On Schneider Electric .com, you have all information in relation with the
pre defined mode available on TeSys T, in each user manual
refer to this link :
http://www.schneider-electric.com/products/ww/en/1500-contactors-protection-relays/1550-motor-manage
ment-system/1508-tesys-t/

- Step 1  Select “Open Custom Program


- Step 2  Select “ LTMR firmware folder ( use of LTMR 2.5 or higher is recommended
)
- Step 3  Select “ Operating mode you want to use to built your custom logic

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 18
Programming structured text
Format structured program

- In Structured Text we have a list of instructions to make the program :


Register (Comp, And, Or, Xor, On_Set); Boolean (Load, Or, Set); Timers; Latch; Counters;
Math (ON_ADD, ON_SUB, ON_MUL, ON_DIV)

- You can find more details about each instruction in the user manual “TeSys T DTM for FDT Container &
Custom Logic Editor - Online Help” using the link bellow
http://www.schneider-electric.com/products/ww/en/1500-contactors-protection-relays/1550-motor-management-system/15
08-tesys-t

- You may also use TeSys T help embedded in SoMove software

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 19
Example of custom mode SoMove
● Using SoMove software Program are constructed using different area
and custom must be written just before “CALL_EOM*”

Logic input
modification area

Custom Logic
area
Defined protection
configuration
program

Logic output
modification area

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 20
Example of custom mode SoMove

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 21
Structured Text: Memory Organization
● C) Memory organization for Custom Logic Program

TESYST MEMORY
LOGIC ID 3 wire Reverser
2 2 wire independent
……….. PRIVATE

11

CUSTOM PROGRAM PUBLIC


LOGIC ID
between 256 and 511

●Custom ID should be derivated from the predefined mode


– Independent mode 2W: 4 – 5 => 260-261

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 22
CALL_EOM

● Available only with SoMove and DTM 2.5 and FW 2.5

● This new instruction summarize in one line all the main function of a
predefined mode.
● Then only accessible informations are input and outputs.
● This new instruction is usefull if you just want to change mapping of I/O
or if you want to add some new functions not impacting the predefined
mode behavior.
● For most custom logic, you will have to change motor control or active
channel so in that case you will need to use the classic predefined
mode

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 23
General architecture of predefined mode

● Manage local /remote and TS/HMI/network control mode


● control transfer
● fallback
● Voltage Dip Management
● generate stop
● generate run
● affect output reg 1200

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 24
Structured Text: Memory Organization
● C) Memory organization for Custom Logic Program
● Registers management

The temporary (TMP) registers INTERNAL MEMORY FOR CUSTOM

Non volatile (NV) registers


INTERNAL/EXTERNAL MEMORY
LTMR registers

● Important registers to know

457: Register Inputs status


458: Register Output status
1200.12 until bit 15: Management of the output LO1 to LO4 without pre defined files
TMP 15.12 until bit 15: Management of the output LO1 to LO4 with pre defined files
700: Free memory on the cyclic part PLC -> TesysT
1270 bit 0: External fault

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 25
Internal register mapping

Resource Address Range Owner Description

Temp Regs 0-69 User Temporary storage of bit and registers assigned by the user when
creating Custom Logic.
Examples: Debounced input signals, logic states, operating modes, etc.

Temp Regs 70-79 Powersuit Temporary storage of Boolean Wire Node values. Assuming that
e “compiler optimization” is not implemented, this limits the quantity
of Boolean Wire Nodes to 160 per FBD (i.e. 10x16).
Examples: B1=TmpRegBit[70.0], B2=TmpRegBit[70.1]
B3=TmpRegBit[70.2]………… B160=TmpRegBit[79.15]

Temp Regs 80 Powersuit Reusable status register.


e Examples: Allow manipulation of “edge” detect status bits for special
cases.
Temp Regs 81-299 Powersuit Temporary storage of Register Wire Node values. These are also used
e as storage for timers, counters, and status registers (Arg1, Arg2,
and Arg3). this limits the quantity of Register Wire Nodes and
timers, counters, etc. to 70 per FBD.
Examples: R1=TmpReg[81], R2=TmpReg82]
R3=TmpReg[83]………… R219=TmpReg [299]

NV Regs 0-31 User Non-Volatile bit or registers assigned by the user when creating Custom
Logic.
NV Regs 32-63 Powersuit Non-Volatile latch, count values and count status.
e
Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 26
TeSys T registers mapping

● Important registers
● 457 => inputs
● 455 => system status: ready, fault, warning,
● 700 => logic output command
● 455 => SystemStatusRegister
● 455.0 SystemReady
● 455.2 SystemFault
● 455.3 SystemWarning
● 455.4 SystemTripped
● 455.5 FaultResetAuthorized
● 455.7 MotorRunning

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 27
Make the most of your energy

Schneider Electric - Partner Projects Switching & Controlling Training Version 5 August 2015 28

You might also like