Programmazione IEC 61131 Su SlimLine

2y ago
188 Views
5 Downloads
2.18 MB
211 Pages
Last View : 18d ago
Last Download : 6m ago
Upload by : Amalia Wilborn
Transcription

Programmazione IEC 61131 su SlimLineELSIST S.r.l.Sistemi in elettronicaVia G. Brodolini, 15 (Z.I.)15033 CASALE M.TOITALYInternet: http://www.elsist.itTEL. (39)-0142-451987Email: elsist@elsist.itFAX (39)-0142-451988INDICE1 - SlimLine . 61.1 - Risorse del sistema. 72 - Architettura memoria. 82.1 - Memoria di backup (Retain). 92.2 - Accesso alla memoria. 103 - Definizione tipo dati. 113.1 - FILEP, file pointer. 113.2 - SYSSERIALMODE, modo comunicazione porta seriale.113.3 - SYSCANMESSAGE, messaggio CAN. 114 - Variabili di sistema. 124.1 - Variabili sola lettura (System variables). 134.2 - Variabili sola lettura (Report variables). 144.3 - Variabili lettura e scrittura (System variables). 155 - Definizioni dati. 165.1 - Variable types, definizione tipo variabili. 165.2 - Task ID definition, identificatore di task PLC. 165.3 - TermIO, definizioni per terminale di I/O. 165.4 - Serial mode definition, definizioni modo seriale. 176 - Protocollo modbus. 186.1 - Accesso variabili da modbus. 186.1.1 - Lettura variabili da modbus. 186.1.2 - Scrittura variabili da modbus. 186.2 - Accesso Real time clock da modbus. 196.2.1 - Lettura RTC da modbus. 196.2.2 - Scrittura RTC da modbus. 206.3 - Accesso Epoch time da modbus. 206.3.1 - Lettura Epoch time da modbus. 206.3.2 - Scrittura Epoch time da modbus. 207 - Funzioni ed FB. 21- Funzioni. 21- Function Blocks. 217.0.1 - Funzioni ed FB embedded. 217.0.2 - Librerie. 227.0.3 - Import libreria. 227.0.4 - Link a libreria. 237.0.5 - Importazione oggetti. 247.0.6 - Considerazioni su link a libreria e su import oggetti.257.0.7 - Protezione funzioni e blocchi funzione. 267.1 - Funzioni ed FB per gestione Flip/Flop. 27Mnl151c000Pag. 1/211

Programmazione IEC 61131 su SlimLine7.1.1 - F TRIG, Falling edge trigger. 277.1.2 - R TRIG, Raising edge trigger. 287.1.3 - RS, Reset/Set flip flop. 297.1.4 - SR, Set/Reset flip flop. 307.2 - Funzioni ed FB per gestione timers. 317.2.1 - eTOF, Timer Off. 317.2.2 - eTON, Timer On. 327.2.3 - eTP, Timer pulse. 337.3 - Funzioni ed FB per gestione counters. 347.3.1 - CTD, Counter Down. 347.3.2 - CTU, Counter Up. 367.3.3 - CTUD, Counter Up/Down. 377.4 - Funzioni ed FB per conversione dati. 397.4.1 - VBitTest, Variable bit test. 397.4.2 - VBitSet, Variable bit set. 407.4.3 - BitToByte, Bit to byte conversion. 417.4.4 - ByteToBit, Byte to bit conversion. 437.4.5 - ByteToWord, Byte to word conversion. 447.4.6 - WordToByte, Word to byte conversion. 457.4.7 - DoubleToWord, Double to word conversion. 467.4.8 - WordToDouble, Word to double conversion. 477.4.9 - ToLower, Uppercase to lowercase letter conversion.487.4.10 - ToUpper, Lowercase to uppercase letter conversion.497.5 - Funzioni ed FB di utilità sistema. 507.5.1 - SysGetSysTime, get system time. 507.5.1.1Calcolo timeout. 507.5.1.2Semplice cronometro. 517.5.2 - SysSetTaskLpTime, set task loop time. 527.5.3 - SysGetRandom, get random number. 537.5.4 - SysGetLastError, get last error. 547.5.5 - SysPCodeAccept, accepts the protection code. 557.5.6 - SysGetCrc, get CRC value. 567.5.7 - SysMAlloc, Memory allocation. 587.6 - Funzioni ed FB per gestione Data/Ora. 597.6.1 - SysETimeToDate, epoch time to date conversion.597.6.2 - SysDateToETime, date to epoch time conversion.617.7 - Funzioni ed FB per gestione terminale di I/O. 637.7.1 - Sysfopen, file open. 637.7.2 - Sysfclose, file close. 657.7.3 - Sysfgetc, get character from file. 667.7.4 - Sysfputc, put character to file. 677.7.5 - Sysfread, read data from file. 697.7.6 - Sysfwrite, write data to file. 707.7.7 - SysGetIChars, get input available characters from file.717.7.8 - SysGetOSpace, get output available space on file.727.7.9 - SysGetRxBSize, get file Rx input buffer size. 737.7.10 - SysGetTxBSize, get file Tx output buffer size. 747.7.11 - SysFIBfClear, file input buffer clear. 757.7.12 - SysFOBfClear, file output buffer clear. 76Mnl151c000Pag. 2/211

Programmazione IEC 61131 su SlimLine7.7.13 - SysFOBfFlush, file output buffer flush. 777.7.14 - SysVarfprintf, variable print to file. 787.8 - File system. 797.8.1 - Sysremove, file remove. 807.8.2 - Sysrename, file rename. 817.8.3 - Sysfilelength, file lengh. 827.8.4 - Sysfseek, file seek. 837.8.4.1Scrittura file di log. 857.9 - Funzioni ed FB per gestione porta seriale. 867.9.1 - SysGetSerialMode, get serial mode. 877.9.2 - SysSetSerialMode, set serial mode. 897.9.3 - SetSMode, Set serial mode. 907.9.4 - SysGetSerialCTS, get serial CTS signal status. 927.9.5 - SysSetSerialDTR, set DTR signal status. 937.10 - Funzioni ed FB per gestione CAN bus. 947.10.1 - SysIsCANRxTxAv, checks if CAN Rx or Tx is available.947.10.2 - SysCANRxMsg, receives a CAN message. 957.10.3 - SysCANTxMsg, transmit a CAN message. 967.11 - Funzioni ed FB per gestione stringhe. 977.11.1 - eLEN, string length. 977.11.2 - eFIND, string find. 987.11.3 - MemSet, memory set. 997.11.4 - SysVarsnprintf, variable print to string. 1007.11.5 - SysVarsscanf, extracts values from string. 1027.12 - Funzioni ed FB per gestione moduli periferici. 1037.12.1 - SysPhrInfos, get infos from peripheral modules.1037.12.2 - SysGetPhrDI, get peripheral digital input. 1047.12.3 - SysSetPhrDO, set peripheral digital output. 1077.12.4 - SysGetAnInp, get analog input. 1107.12.5 - SysSetAnOut, set analog output. 1137.12.6 - SysGetCounter, get counter. 1157.12.7 - SysGetEncoder, get encoder input. 1177.12.8 - SysPhrVRd, read variable from peripheral module.1197.12.9 - SysPhrVWr, write variable to peripheral module.1207.12.10 - CPUModuleIO, CPU module I/O management.1217.13 - Funzioni ed FB di utilità generale. 1227.13.1 - DB100AddOffset, returns DB100 address offset.1227.13.2 - BLINK, blink command. 1237.13.3 - BlinkValue, blink out value. 1247.13.4 - ModbusRTUMaster, modbus Rtu master. 1257.13.5 - MDBRTUMASTER, modbus Rtu master. 1277.13.6 - ModbusRTUSlave, modbus Rtu slave. 1297.13.7 - ONOFFCYCLE, on/off cycle with random times.1327.13.8 - PIDMng, PID management. 1347.13.9 - PWMOut, PWM output management. 1367.13.10 - SysDMXMng, DMX management. 1377.13.11 - IOEncoder, incremental encoder over I/O. 1397.13.12 - GetISO1155Crc, calculate CRC according ISO1155.1407.13.13 - IODataExchange, exchange data by using logic I/O.141Mnl151c000Pag. 3/211

Programmazione IEC 61131 su SlimLine7.13.14 - Average, value average. 1437.14 - Protocollo DLMS, o IEC 62056-21. 1447.14.1 - IEC62056 21Rd, IEC62056-21 protocol read. 1457.15 - Funzioni ed FB gestione modem (eModemLib). 1477.15.1 - ModemCore, modem core management. 1487.15.2 - ModemSMSReceive, receive a SMS message.1507.15.3 - ModemSMSRxCmd, receive a SMS command.1517.15.4 - ModemSMSSend, send a SMS message. 1527.16 - Funzioni ed FB gestione One-Wire (ePLC1WireLib).1537.16.1 - OWireMng, One-Wire management. 1547.16.2 - OWRdIdentifier, One-Wire read ROM identifier.1557.16.3 - OWRdTemperature, One-Wire read temperature.1577.16.4 - OWRdHumidity, One-Wire read humidity. 1597.17 - Funzioni ed FB gestione networking. 1617.17.1 - SysIPReach, IP address is reachable. 1627.17.2 - SysSktListen, Socket listen. 1637.17.3 - SysUDPSktRcv, UDP socket receive. 1657.17.4 - SysUDPSktSend, UDP socket send. 1667.17.5 - UDPDataTxfer, UDP data transfer. 1687.18 - Funzioni ed FB supporto prodotti Hw Group (eHwGSpLib).1717.18.1 - STESnmpAcq, STE termometer acquisition over SNMP.1727.18.2 - HTempBox, HTemp Box2-485 acquisition. 1747.19 - Funzioni ed FB supporto protocollo NMEA (eNMEALib).1767.19.1 - NMEASInterface, NMEA system interface. 1777.19.2 - GLLSentence, Geographic Position sentence. 1787.19.3 - MWVSentence, Wind Speed and Angle sentence.1807.20 - Funzioni ed FB supporto inverter Power One (ePowerOneLib).1817.20.1 - AuroraDSPMeasure, Aurora measure request to DSP.1827.20.2 - AuroraCEnergy, Aurora cumulated energy reading.1857.20.3 - CRCPolinomial, CRC polinomial calculation. 1878 - Tips and tricks. 1888.1 - Swap variabile DWORD. 1888.2 - Swap variabile WORD. 1888.3 - Swap variabile BYTE. 1898.4 - Espandere DWORD in 32 BOOL. 1908.5 - Comprimere 32 BOOL in DWORD. 1918.6 - Definire caratteri ascii non stampabili. 1928.7 - Rx/Tx dati su stream. 1939 - Appendici. 1949.1 - Tabella istruzioni IL. 1949.2 - Operatori linguaggio ST. 1959.3 - Statements linguaggio ST. 1969.4 - Conversione tipo dati. 1979.5 - Errori di esecuzione. 1989.6 - Tabella codici Ascii. 2009.6.1 - Tabella codici ASCII standard. 2009.6.2 - Tabella codici ASCII estesi. 20110 - Esempi di programmazione. 20210.1 - Biblioteca esempi. 20210.2 - Definizioni I/O logici negli esempi. 203Mnl151c000Pag. 4/211

Programmazione IEC 61131 su SlimLine10.3 - FB gestione lettura/scrittura registri. 20410.3.1 - Utilizzo FB Lettura/Scrittura registri. 20610.4 - FB gestione ciclo On/Off con tempi random. 20710.4.1 - Utilizzo FB ciclo On/Off con tempi random. 20810.5 - Blocco funzione MiniDMX.

Programmazione IEC 61131 su SlimLine 1.1 Risorse del sistema Esistono modi diversi per accedere alle risorse del sistema. Gli I/O logici presenti sul modulo CPU e sui moduli di estensione sono gestiti tramite le funzioni SysGetPhrDI e SysGetPhrDO. Gli I/O logici dei moduli di estensione sono automaticamente gestiti in immagine di processo dal sistema operativo che

Related Documents:

- The IEC 61131 standard gives rules for compliancy - Certification guides users towards real IEC 61131-3 programming systems (e.g. PLCopen certified products) Meanwhile only truly compliant IEC 61131-3 systems are promoted as IEC 61131-3 products Meanwhile only truly compliant IEC 61131-3 syst

Home » Brecknell » Brecknell PS150 Slimline and PS400 Slimline Digital Receiving Scale Instructions Brecknell PS150 Slimline and PS400 Slimline Digital Receiving Scale Instructions Contents [ hide 1 PS150 Slimline and PS400 Slimline 1.1 Digital Receiving Scale 1.2 User Instructions 1.3 1

IEC 61215 IEC 61730 PV Modules Manufacturer IEC 62941 IEC 62093 IEC 62109 Solar TrackerIEC 62817 PV Modules PV inverters IEC 62548 or IEC/TS 62738 Applicable Standard IEC 62446-1 IEC 61724-1 IEC 61724-2 IEC 62548 or IEC/TS 62738 IEC 62548 or IEC/TS 62738 IEC 62548 or IEC/TS 62738 IEC 62548 or IEC/

accepted in Germany as DIN EN 61131, in France as NF EN 61131, and in Britain as BS EN 61131. The most important parts of the standard are quoted below. Quotes are in italics. Part 3 of this standard defines the "Area of application" in Section 1. “This Part of IEC 61131 specifies syntax and semantics of programming languages forFile Size: 610KB

IEC has formed IECRE for Renewable Energy System verification - Component quality (IEC 61215, IEC 61730, IEC 62891, IEC 62109, IEC 62093, IEC 61439, IEC 60947, IEC 60269, new?) - System: - Design (IEC TS 62548, IEC 60364-7-712, IEC 61634-9-1, IEC 62738) - Installation (IEC 62548, IEC 60364-7-712)

IEC 61869-9, IEC 62351 (all parts), IEC 62439-1:2010, IEC 62439-3:2010, IEC 81346 (all parts), IEC TS 62351- 1, IEC TS 62351- 2, IEC TS 62351- 4, IEC TS 62351- 5, Cigre JWG 34./35.11, IEC 60044 (all parts), IEC 60050 (all parts), IEC 60270:2000, IEC 60654-4:1987, IEC 60694:1

Programmazione IEC 61131-3

I can g writing. s L.K.6 Title: I can statements reading K Author: 4750060513 Created Date: 12/10/2014 2:14:46 PM