background image

Manuale

User manual

 

 

 

Summary of Contents for TD320

Page 1: ...Manuale User manual...

Page 2: ...7 4 2 1 Creation of a new project 19 4 2 2 Modification of an already existing project 25 5 Memory areas of the TD320 26 5 1 Area of Variable V 26 5 2 Area of Special Marker SM 27 5 3 Area of Digital...

Page 3: ...59 7 7 MOV assignments 59 7 8 BLKMOV multiple assignments 59 7 9 MOVIND indexed assignments 60 7 10 MOVTXT assignments 60 7 11 Digital input immediate contacts II 60 7 12 Contacts IF 61 7 13 Functions...

Page 4: ...able from TdDesigner a simple and versatile development environment while the logic relative to the PLC is managed from the PLProg development environment which is common to other devices PL250 TCT500...

Page 5: ...5 1 Mechanical dimensions and installation 142 mm DB9 FE DB25 FE 48 mm 170 mm 179 mm 204 mm 4...

Page 6: ...y characteristics 1 DISPLAY Type Back lit LCD resistive touch screen STN Dimensions Active Area 5 7 115 18 W mm x 86 38 H mm Resolution 320x240 pixels Colors 256 8bit Importable Images bitmap of 256 c...

Page 7: ...e the following precautions Distinguish the line bringing live current from those of voltage Avoid the vicinity of groups of telecommand circuit breakers electromagnetic contacts and high power motors...

Page 8: ...other devices is possible through serial connection with RS485 RS232 and RS422 The electrical signals are available in two connectors present at the back of the terminal post DB9 and post DB25 DB9 FE...

Page 9: ...PN 9 DI3 digital input NPN 10 DI4 digital input NPN 11 RX RS232 Program COM2 12 TX RS232 Program COM2 13 DI5 digital input NPN 14 GND isolated RS485 RS422 COM1 15 RS485 TX RS422 COM1 16 RS485 TX RS422...

Page 10: ...PIN 16 RS485 DB25FE 3 2 1 1 1 Cable for COM1 communications in generic RS485 A cable is available code art 1620 00 057 optional that from connector DB25 provides COM1 in RS485 for a generic connectio...

Page 11: ...re RS485 RS232 PROGRAM CORRESPONDENCE PIN Rs485 DB25 PLUG 14 GND 15 RS485 16 RS485 2 1 4 DB25M 1620 00 048 Cavo RS485 COM1 SLA VE PL250 by PIXSYS 1 I N 0 U T 1 6 7 1 2 1 5 6 1 0 R U N CO M SLA VE PL30...

Page 12: ...N 9 RS485 PIN 4 RS485 DB9 FE 3 2 2 2 1 Cable of EXP1 communications in generic RS485 A cable is available code art 1620 00 034 optional which provides EXP1 port from connector DB9 in RS485 for a gener...

Page 13: ...connector DB9 of the terminal to port COM1 on PLUG of the PLC DB9 FE DB25 FE 1 8 8 1 Cable RS485 Code 1620 00 048 Adattatore RS485 RS232 PROGRAM CORRESPONDENCE PIN Rs485 DB9 PLUG 5 GND 9 RS485 4 RS485...

Page 14: ...tions port used for programming the terminal through a PC see Chapter 4 3 2 3 1 COM2 on DB25 connector pins PIN 7 GND PIN 12 TX RS232 PIN 11 RX RS232 DB25FE 3 2 3 2 COM2 on DB9 connector pins PIN 5 GN...

Page 15: ...o program the terminal it is necessary to connect it to a PC The development kit optional code art 2100 10 008 provides the cable necessary for the connection and the development environment to create...

Page 16: ...OMPUTER Software PLProg Vers 4 xx TdDesigner Terminal Mod TD320 AD Adapter DB9M PLUG8 Code 1620 00 040 Converter USB SERIAL Code 1620 00 050 OPTIONAL Cable PLUG 8 pins Code 1620 00 047 1 8 1 8 Adattat...

Page 17: ...logic of the operation of the system i e the way in which the memory areas must interact among each other is instead managed by the PLC The TD320 terminal is also a PLC therefore it manages graphics o...

Page 18: ...ivision of the execution cycle the terminal will execute the instructions inherent for graphics for 50 of the time and the Ladder instructions of the PLC for the other 50 cyclically Time GRAFICA GRAFI...

Page 19: ...oject Start TdDesigner 1 Create new project tdproj name_file 2 Start PLProg 4 xx 3 Create new Ladder diagram plp name_file 4 Compile Ladder diagram plp name_file 6 Transfer project to Terminal 7 5 Com...

Page 20: ...dDesigner Start the TdDesigner software from the Start Program menu or from the Desktop icon automatically created at installation 2 Create new project name_file tdproj Once the development environmen...

Page 21: ...on available with the development kit code art 2100 10 008 and assumed here as known by the user 3 Start PLProg 4 xx Start the PLProg 4 xx software from the Start Program menu or the Desktop icon auto...

Page 22: ...ide to the software and the implementation of the Ladder code is available with the development kit code art 2100 10 008 and assumed here as known by the user 5 Compile project file_name tdproj Once t...

Page 23: ...e the Ladder diagram sketch is finished it is necessary to compile it as shown in the figure below It is this fundamental passage that creates the link between the Ladder file just compiled in the dev...

Page 24: ...lp 7 Transfer the project to the terminal If the compilation was successful now one can carry out the download of the project as shown in the figure below The procedure transfers both the graphical pa...

Page 25: ...already existing project must be modified follow the procedure below Start PLProg 4 xx Compile Ladder diagram plp name_file Transfer project to Terminal Compile project tdproj name_file Start TdDesign...

Page 26: ...word D SIGN AREA ACCESS V Area of Variable V b W D SM Area of Special Marker b W D I Area of Digital Inputs b W AI Area of Analog Inputs b W Q Area of Digital Outputs b W M Area of Marker b W B Area o...

Page 27: ...Special Marker SM Area special marker SM is the memory area used to retain all the data necessary for the Ladder program to interact with the TD320 hardware Some data are initialized at the start wit...

Page 28: ...ows use of a 1 second clock impulse ON for 0 5 seconds OFF for 0 5 seconds R Bit 4 Bit clock of scan cycles that is active ON for a cycle and deactivated OFF for the successive cycle It can be used as...

Page 29: ...tic bit anomaly malfunction Bit 0 Bit ON in case of loss of data kept in the area special marker SM R W Bit 1 Bit ON in case of loss of data kept in the area variable V R W Bit 2 Bit ON in case of los...

Page 30: ...etween 1 and 100 the correspondent interrupt is fixed to a default to 100 ms At startup they are both fixed to a default of 100 100 ms In the Ladder code of the two interrupts it is not allowed to use...

Page 31: ...or the currently visualized text messages if n is the number of languages set by TdDesigner SM13 can vary from 0 to n 1 At startup if SM1 0 1 the value is initialized to 0 first language otherwise the...

Page 32: ...I Area word Q Area word T Area word PT Area word C Area word PV Area double V Area double SM Area word M Area word EEPROM Area word MMC Area byte TX COM1 Area byte RX COM1 Area byte TX EXP1 Area byte...

Page 33: ...relative to the graphics Possible values 10 90 10 90 default 50 50 half time to graphics and half to PLC R W SM21 1021 CPU percentage for graphics of page change Percentage of time used only to execu...

Page 34: ...it 3 Bit ON Digital input DI4 active R Bit 4 Bit ON Digital input DI5 active R Bit 5 Bit ON Digital input DI6 active R Bit 6 Bit ON Digital input DI7 active R Bit 7 Bit ON Digital input DI8 active R S...

Page 35: ...serial line control to the protocol selected during the programming phase R W SM42 1042 Num Byte in COM1 reception buffer SM43 1043 Num Byte in EXP1 reception buffer SM44 1044 Num Byte in COM2 recept...

Page 36: ...ult 8 N 1 SM50 1050 EXP1 serial format default 8 N 1 SM54 1054 COM2 serial format 8 N 1 non modifiable The value that is set defines the communications data format of the serial line for the ModBus pr...

Page 37: ...defines the number of consecutive communication errors after which an anomaly will be signaled in the respective bit of the word Serial state The default value for all of the ports is 10 R W SM57 105...

Page 38: ...word SM57 At startup all of the words are initialized to 0 R SM73 1073 Serial state EXP1 1 16 SM74 1074 Serial state EXP1 17 32 SM75 1075 Serial state EXP1 33 48 SM76 1076 Serial state EXP1 49 64 SM7...

Page 39: ...SM92 1092 Serial state COM2 49 64 SM93 1093 Serial state COM2 65 80 SM94 1094 Serial state COM2 81 96 SM95 1095 Serial state COM2 97 112 SM96 1096 Serial state COM2 113 128 SM97 1097 Serial state COM...

Page 40: ...minimum delay for a new transmission after the reply of a slave device Possible values 0 100 0 100ms default 5 5ms R W 5 3 Area of Digital Input I Memory area I is composed of 32 words and can be used...

Page 41: ...bit M5 contact or electrical relay coil 5 6 Area of Analog Inputs AI Memory area AI is composed of 32 words and can be used to contain the state of the analog inputs read from the serial lines of othe...

Page 42: ...16 bits from 32768 to 32767 5 10 Area of Bistable Relay B The area of memory for bistable relay B is composed of 128 bits It is organized by bits thus each bistable relay is individualized by a single...

Page 43: ...is composed of 200 bytes This area is used to manage the data in transit on serial port COM1 The first 100 bytes TX 0 TX 99 are used to load the data to transmit the last 100 bytes RX 0 RX 99 are used...

Page 44: ...44 These bytes are useful only in the free port mode while in normal mode they are managed directly by the protocol selected in the programming phase...

Page 45: ...on of the port and the instructions must be implemented in the development environment PLProg 4 xx Generally the coils of the Ladder diagram are executed following the sequential order written in the...

Page 46: ...ing protocol ModBus slave This port is used for programming the terminal by PC The control of the communication is carried out every scan cycle of the Ladder code This means that the flow of the data...

Page 47: ...ollowing figure for the list of possible operations in a ModBus communication reading and writing of a word or bit single or multiple Main features of protocol Modbus RTU Baud rate Programmable Format...

Page 48: ...rite on a Slave Normally data read from the slave is saved in the Master When the data internal to the TD320 varies by effect of the program it is useful to write the modified data into the Slave Each...

Page 49: ...ware R ROM 2 Protocol activated on COM1 R ROM 3 Protocol activated on EXP1 R ROM 4 Protocol activated on COM2 R ROM 5 Address of protocol R BUFF 6 Version of BOOT R ROM 10 Clock seconds TD320 R W BUFF...

Page 50: ...ord area EEProm R W EEP 30000 59999 Word area MMC R W EEP ACCESS TO WORD MODBUS ADDRESS DESCRIPTION n o normally open READ WRITE RESET VALUE 90 Contacts n o positioners POS1 POS16 R 0 95 Contacts n o...

Page 51: ...R 0 ACCESS TO BIT MODBUS ADDRESS DESCRIPTION n o normally open READ WRITE RESET VALUE 1440 Contact n o positioner POS1 R 0 1441 Contact n o positioner POS2 R 0 1455 Contact n o positioner POS15 R 0 1...

Page 52: ...F 32001 Bit 1 area variables V0 R W BUFF 63999 Bit 15 area variables V2000 R W BUFF 6 3 Protocol NAIS Matsushita Master This is the protocol that permits the reading and writing of data bit of word of...

Page 53: ...ELAY R 0 9999 20000 R W 8 LINK RELAY L 0 9999 30000 R W 8 TIMER T 0 9999 40000 R 8 COUNTER C 0 9999 50000 R 8 ACCESS TO WORD WORD NAME SYM MIN MAX OFFSET READ WRITE MAX NUMBER OF WORDS READ WRITTEN CO...

Page 54: ...0 R 7 W SET VALUE AREA 0 9999 40000 R W 10 R 7 W ELAPSED VALUE AREA 0 9999 50000 R W 10 R 7 W For the two examples shown below the protocol NAIS Matsushita is selected for the port EXP1 The illustrate...

Page 55: ...55 The following illustration however reads the register DATA REGISTER of the PLC NAIS the 10 words from DT0 to DT9 and copies them in the area of V0 to V9 of the TD320...

Page 56: ...n N O is closed ON when the bit value is 1 input active A contact normally closed N C is opened ON when the bit value is 0 input non active 7 2 Digital output contacts Q The TD320 has 512 type Q outpu...

Page 57: ...current value of the timer word T will be set to 0 At the deactivation of the coil the timer will count until the elapsed time becomes greater than or equal to the pre established time preset word PT...

Page 58: ...pon activation of the reset input Cx RESET or when the operation MOV Cx 0 is executed Upon reaching the maximum value 32767 the rise of the next up count will leave the current value unchanged Similar...

Page 59: ...refer to the available areas of memory variables 7 7 MOV assignments The function MOV move assigns a numeric value constant or the contents of another location source area to a specified location in m...

Page 60: ...ation and similarly B is the index of area A 7 10 MOVTXT assignments MOVTXT saves string characters passed as a function parameter to a specified location in memory This function permits the following...

Page 61: ...e bit 0 is the least significant bit LSB 7 14 BIT contacts This operation extracts the value of a bit of an area of memory A contact normally open is closed ON when the bit value is 1 A contact normal...

Page 62: ...ifies the state of the flow of current The flow of current stops if it reaches a NOT contact and supplies energy if it doesn t reach it The operation NOT inverts the logical value 0 1 and 1 0 7 17 P a...

Page 63: ...SEND function before the end of the preceding transmission or with free port mode disabled are ignored by the program 7 19 TunePOS and POS functions The function TunePOS executes an auto tuning proced...

Page 64: ...ivate the function TunePOS and wait that the contact TunePOS normally open closes to indicate the end of the procedure of auto tuning the axis At this point the inertia data and the reaction time of t...

Page 65: ...65 The following example shows the segment of Ladder code that implements the axis positions as explained in the procedure...

Page 66: ...responding coil is activated but keep in mind that according to the protocol of communication the time of updating the data can vary significantly and that at the moment of activation of the coil the...

Page 67: ...he parameters of regulation The integral action of the PID is zeroed only by calling the functions and fixing the integral time to 0 Otherwise even in case of shutdown the system will initialize the r...

Page 68: ...nd maximum value of the PID output set by the RANGE function The following table indicates 8 types of regulation and the modulation intervals the effective value between the interval is determined als...

Page 69: ...Setpoint P B Output 100 Output 0 Double inverse action 1 Setpoint P B 2 Setpoint Setpoint P B Output 100 Output 0 The PID function for correct operation must be called at the most regular intervals po...

Page 70: ...sets the integral action to zero 7 22 GENSET functions The function GENSET automatically generates a setpoint variable rising or falling with the possibility to set a ramp of acceleration or decelerat...

Page 71: ...cation VD 10 Write 1 in the location VD the location indicated as parameter of the function This gives the start to the function that will automatically begin to write the generated setpoint in the lo...

Page 72: ...1 if a segment should be lit and 0 if the segment should remain dark The association between the bits and the segments of the display is the following B0 B1 B2 B7 B3 B4 B5 B6 TO_ASCII_SIGNED Convert t...

Page 73: ...73 8 Notes Updates...

Page 74: ...74 Notes Updates...

Page 75: ...75 Notes Updates...

Reviews: