Home
Unity Pro - Concept Application Converter - User Manual
Contents
1. 112 38 4 5 6 7 8 9 10 11 12 13 14 15 16 Bit Allocation 1 Comm function display 2 Cable A status 3 Cable B status 5 8 Communication counter lost 9 16 Cumulative repetition counter Global cumulative error counter for cable A DIOSTATE word9 The conditions are true when the bits are set to 1 Bit allocation for word9 112 4 5 7 8 9 10 11112 13 14 15 16 Bit Allocation 1 8 Counts recognized errors 9 16 Counts zero responses Global cumulative error counter for cable B DIOSTATE word10 The conditions are true when the bits are set to 1 Bit allocation for word10 112 4 5 7 8 9 10 11112 13 14 15 16 Bit Allocation 1 8 Counts recognized errors 9 16 Counts zero responses 33002515 07 2012 161 PLCSTAT RIO status DIOSTATE word11 to word106 Words 11 to 106 are used to describe the RIO station status three status words are planned for each I O station The first word in each group of three shows the communication status for the corresponding I O station 1 2 8 4 5 6 7 8 91101 11 121 13 14 15 16 Bit Allocation 1 Communication health 2 Cable A status 3 Cable B status 5 8 C
2. 6 3 FBI 6 16 r 6 6 FBI 6 8 1 _6_ i _ FBI_6_13 W FBI_6_4 7 E 9 B FBI 6 9 3 gt O d 6 1 4 FBI_6_10 9 FBL6 14 615 410 11 gt gt __ 4 L gt FBI 6 11 E y L B d py L L FBI_6_12 _6_ Hn u 1 gt a 33002515 07 2012 41 Requirements Schematic diagram of an LD Network after the conversion to Unity 6 16 lo f 6 3 6 6 FBI 6 13 6 4 q9 _ LD FBI_6_14 _6_ FBI_6_15 gio SO 6 9 6 1 EEES FBI 6 11 42 33002515 07 2012 Requirements Separate LD Networks IEC LD sections contain many independent graphic areas networks During the conversion of IEC LD sections additional columns are added to the networks to avoid undesired automatically generated links in Unity Pro If the additionally inserted columns were to extend across the entire section the original graphic would be modified too much Therefore the sections are divided in networks during the conversion and additional columns are only inserted for the associated network Inserting additional columns may cause a network to exceed its maximum section width and it is
3. 1 2 3 4 5 6 8 9 1011 12 13 14 15 16 Bit Allocation 1 8 Counts receiver errors 9 16 Counts l O station receiver failures 33002515 07 2012 159 PLCSTAT Bit allocation for word4 1 2 4 7 1 11 12 13 14 15 16 Bit Allocation 1 1 frame too short 2 1 no frame 13 1 CRC error 14 1 alignment error 15 1 overflow error Status of cable B DIOSTATE word5 word6 Bit allocation for word5 1 2 3 4 5 6 T 8 9 10 11 12 13 14 15 16 Bit Allocation 1 8 Counts frame fields 9 16 Counts DMA receiver overflows Bit allocation for word6 1 2 3 4 5 6 7 8 9 110111 121 1831141 15 16 Bit Allocation 1 8 Counts receiver errors 9 16 Counts l O station receiver failures Bit allocation for word7 1 v 11 2 13 14 15 ve Bit Allocation 1 1 frame too short 2 1 no frame end 13 1 CRC error 14 1 alignment error 15 1 overflow error 160 33002515 07 2012 PLCSTAT Global communication status DIOSTATE word8 The conditions are true when the bits are set to 1 Bit allocation for word8
4. Parameter Data type Meaning REO BOOL With a rising edge at the REO input this function block reads a register area from an addressed slave via Modbus Plus NODEADDR INT Device address within the target segment ROUTPATH DINT Routing path to target segment SLAVEREG DINT Offset address of the first 4x register in the slave to be read from NO_REG INT Number of registers to be read from slave Description of input output parameters Parameters Data type Meaning REG_READ ANY ARRAY WORD Writing data For the file to be read a data structure must be declared as a located variable Description of the output parameters Parameters Data type Meaning NDR BOOL Set to 1 for one cycle after reading new data ERROR BOOL Set to 1 for one scan in case of error STATUS WORD Error Code 168 33002515 07 2012 READREG Mode of Functioning Function mode of READREG DFB blocks Although a large number of READREG function blocks can be programmed only four read operations may be active at the same time It makes no difference whether these operations are performed using this function block or others e g MBP_MSTR CREAD REO All function blocks use one data transaction path and require multiple cycles to complete a task The status signals NDR and ERROR report the function block state to the user program The complete routing informa
5. 178 33002515 07 2012 SET TOD Representation in IL Representation CAL SI I DW ET TOD Instance EK DayOfWeek MONTH Byte variable2 DAY Byte variable3 Y S PU HOUR Byte variable5 Representation in ST SECOND Byte variable Representation DW T SET_TOD Instance HOUR Byte variable5 Parameter description Description of the input parameters SECOND Byte variable SE InputAcceptedFlag EAR Byte variable4 INUTE Byte variable6 TOD_CNF gt ClockReady S PULSE InputAcceptedFlag EK DayOfWeek MONTH Byte variable2 DAY Byte variable3 YI EAR Byte variable4 INUTE Byte variable6 TOD CNF ClockReady Parameters Data type Meaning S PULSE BOOL 0 gt 1 the input values are accepted and written into the clock D WEEK BYTE Day of week 1 Sunday 7 Saturday MONTH BYTE Month 1 12 DAY BYTE Day 1 31 YEAR BYTE Year 0 99 HOUR BYTE Hour 0 23 MINUTE BYTE Minute 0 59 SECOND BYTE Second 0 59 Description of the output parameters Parameters Data type Meaning TOD CNF BOOL 1 MW register 4x for the hardware system clock was found and the clock is operational 0 Time is currently being set or hardware clock was not found 33002515 07 2012 179 SET TOD 180 3300251
6. EFB Replaced by FFBs Not Available For All Platforms TNOUT Parameters ae Re VDO BERE ees Parameter Type ANY ARRAY WORD Parameters Unique Naming Incomplete LD Generation LD Execution Order Constants eiii Indices in ST and 1 Calculate with TIME and WORD Assignments to BOOL Topological Address 0 Substitute QD by 11 13 14 15 17 18 19 20 22 31 35 36 47 49 50 51 53 54 55 59 60 61 62 63 64 68 69 70 71 72 73 33002515 07 2012 Chapter 4 Chapter 5 Chapter 6 Part Il Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Structure Alignment 74 Undefined Output on Disabled EFs 75 Variables at Empty 77 SFC Section Retains its State When Performing an Online Modification 78 SFCCNTRL Function Block in Unity Behaves
7. The complete routing information must be separated into two parts e inthe NODEADDR of the destination node regardless of whether it is located in the local segment or in another segment and e the routing path in case there is a link via network bridges The resulting destination address consists of these two information components The routing path is a DINT data type which is interpreted as a sequence of two digit information units It is not necessary to use 00 extensions e g both routing paths 4711 and 47110000 are valid for NODEADDR 34 the result is destination address 47 11 34 00 00 NOTE This function block puts a heavy load on the network The network load must therefore be carefully monitored If the network load is too high the program logic should be reorganized to work with the WRITEREG function block which is a variant of this function block that does not operate in continuous mode but is command driven 33002515 07 2012 129 CWRITEREG Parameter description NODEADDR ROUTPATH SLAVEREG NO REG REG WRIT STATUS Identifies the node address within the target segment The parameter can be specified as an address located variable unlocated variable or literal Identifies the routing path to the target segment The two digit information units run from 01 64 see Mode of Functioning page 129 If the slave resides in the local network segment ROUTPATH must be set
8. 6 End the Concept Converter program using File Exit 104 33002515 07 2012 Conversion Procedure Importing a Project into Unity Pro General Import Project A Concept project that is be used in Unity Pro must first be exported from Concept It is then possible to use the Unity Concept Converter to make the conversion to a Unity Pro project Carry out the following steps to convert and import a project Step Procedure 1 Launch Unity Pro 2 Open the project exported from Concept using File Open Select the data type CONCEPT PROJECTS ASC NOTE Do not use the project with used DFBs Re Connect to Equal option when creating the ASC file Unity Pro cannot import the application if this option is used Result The ASCII file is converted to Unity Pro source file format and imported automatically Import errors and messages about objects that cannot be converted and have substitute objects in their place are displayed in an output window Edit the errors and messages in the output window manually to ensure the Unity Pro project runs correctly To ensure that a project contains no more errors select the menu command Build Analyse Project again 33002515 07 2012 105 Conversion Procedure Missing Datatypes at the Beginning of the Import General If the dialog at the beginning of the import claims for unknown DDTs search for local type decla
9. Possible application behavior change Not Connected EN Inputs In Out Variables When EN inputs are left open the concerned blocks are not executed in Concept whereas they would be executed in Unity Pro To eliminate this difference the Concept Converter applies a constant boolean value of FALSE to not connected EN inputs In this way achieving the same behavior as in Concept In out variables are a special kind of variable used with program organization units POUs i e functions function blocks and programs They do not represent any data directly but reference other data of the appropriate type They are declared by use of the VAR IN OUT keyword In out variables may be read or written to Inside a POU in out variables allow access to the original instance of a variable instead of a local copy of the value contained in the variable Function Block Invocation A function block invocation establishes values for the function block s input variables and causes execution of the program code corresponding to the function block body These values may be established graphically by connecting variables or the outputs of other functions or function blocks to the corresponding inputs or textually by listing the value assignments to input variables If no value is established for a variable in the function block invocation a default value is used Depending on the implementation input variables may consist of the ac
10. Retyping EFB Parameter Another reason of this message can be e g that the EFB parameter has been retyped to ANY ARRAY WORD See also Parameter type changed Combinations of Variables Variable Instances and Parameters from Concept Coming from Concept are the following combinations of variables variable instances and parameters pins Element Description Variable Declarations e The variable declaration has a type of its own and can have a register e Several variable declarations can have individual types and the same register CP GV1 Symbol 4 100 DPM Time INIT FALSE 0 EXP FALSE RET FALSE READONLY FALSE MAS FALSE TEXT CP GV1 SymbolElem 4 100 INT ID INIT FALSE 0 EXP FALSE RET FALSE READONLY FALSE MAS FALSE TEXT Varaiable Instances e Variable INSTANCES coming with a SYMBOL have no own type and no register and use the type of the necessary variable declaration CP GVI NAMED VAR SymbolElem 10 9 FP IO OUTPUT e The variable instance can come with a register in this case it has a type of its own in the instance declaration and no symbol CP GVI REG VAR 4 100 27 16 FP IO INPUT DPM Time EXP FALSE RET TRUE MAS FALSE e Itis not necessary to have a variable declaration for register variable instances e Textual anonymous declarations AT MWxx DDT are equivalent to variable instance declarations with register and declare the type as well e The type is forced to be the same a
11. 33002515 07 2012 PLCSTAT Element description DIOSTATE Description of the DIOSTATE element Element Data type Meaning wordl WORD Switch on error numbers word2 WORD Cable A error word3 WORD Cable A error word4 WORD Cable A error word5 WORD Cable B error word6 WORD Cable B error word7 WORD Cable B error words WORD Global communication status word 9 WORD Global cumulative error counter for cable A wordlO WORD Global cumulative error counter for cable B wordll WORD I O station 1 health status and repetition counter first word wordl2 WORD I O station 1 health status and repetition counter second word word13 WORD I O station 1 health status and repetition counter third word wordl4 WORD I O station 2 health status and repetition counter first word word104 WORD I O station 32 health status and repetition counter first word word105 WORD I O station 32 health status and repetition counter second word word106 WORD I O station 32 health status and repetition counter third word 33002515 07 2012 153 PLCSTAT PLC status PLC STAT General information NOTE Information corresponds to status table words 1 to 11 in the dialog PLC status The conditions are true when the bits are set to 1 PLC status PLCSTATE wordl Hot Standby
12. If a Concept Macro has been included into the Concept export this Macro is converted as if it were a DFB and appears in the project browser tree as a DFB Delete this DFB because Unity Pro does not support Macros 108 33002515 07 2012 Conversion Procedure Initialization Values General Initialization values are contained in Concept export in an array describing the State RAM This array is converted in Unity Pro to clusters i e that it is cut into contiguous sequences of non zero values with single zero values tolerated Each cluster is converted to an individual array with the names 11 SRAMxxx 33002515 07 2012 109 Conversion Procedure 110 33002515 07 2012 Blocks from Concept to Unity Pro Overview This part contains a description of the blocks which are not part of Unity Pro as standard However if these blocks were used in Concept they are generated during the project conversion from Concept to Unity Pro in order to map the functionality configured in Concept into Unity Pro on a one to one basis What Is in This Part This part contains the following chapters Chapter Chapter Name Page 7 BYTE TO DFB Type conversion 113 8 CREADREG Continuous register reading 117 9 CWRITREG Continuous register writing 125 10 DINT AS WORD DFB Type conversion 131 11 DIOSTAT Module function status DIO 133 12 GET TOD Reading the har
13. Platform SFC Management SFC_RESTORE Quantum and Premium not for Modicon M340 Hot StandBy HSBY_RD HSBY_ST HSBY_WR REV_XFER Quantum only 58 33002515 07 2012 Language Differences INOUT Parameters Manual Correction INOUT parameter syntax in ST and IL must be corrected manually Examples are shown Ascii FIFO OUT Pile AscFifo Mess AscFifo Out Ascii FIFO OUT DataOut is manually corrected to Ascii FIFO OUT Pile AscFifo Mess DataOut AscFifo Out Output Parameters INOUT parameters in ST sections that were output parameters in Concept e g DataOut of FIFO must be moved manually in ST and IL to the parameters inside parentheses associated with the call If INOUT parameters that were outputs only in Concept are connected only to a link at the output side they must get a manually declared variable at the input side as well The link must be deleted if it is not connected to another IN OUT variable Targets of the deleted link must be assigned to the manually declared variable This is done automatically in V2 0 Change of Variable Type The converter changes the type of direct variables at INOUT parameters of communication blocks to ARRAY 0 0 OF WORD This must be corrected manually to correspond to the size of the array 33002515 07 2012 59 Language Differences Parameter Type Changed Change The parameter type has
14. Concept Converter Concept Export as ASCII Convert XEF Import Unity Pro Project File File Project Error report 33002515 07 2012 101 The Conversion Process Error Report and Analysis Description of the conversion levels Level Description 1 A project is exported from Concept An ASCII file is created 2 The Unity Pro Concept Converter is called The ASCII file is converted into an XEF file 3 The XEF file is imported into Unity Pro A Unity Pro project is created 4 The error report is checked There must be no errors 5 The project is now available in Unity Pro and can be generated and then loaded into a PLC or processed in Unity Pro Errors that occur during conversion are logged in an error report and displayed in an output window Substitute objects are used in place of objects that cannot be converted The Unity Pro project can be analyzed using the main menu Create Analyze Project Subsequently messages are displayed in the output window to find the substitute objects The errors displayed in the output window must be corrected manually to ensure the Unity Pro project runs correctly 102 33002515 07 2012 Conversion Procedure Overview This chapter contains the procedures required to convert a Concept project into a Unity Pro project What Is in This Chapter This chapter contains the following
15. REQ NODEADDR ROUTPATH SLAVEREG NO_REG REG READ REG READ NDR ERROR STATUS I SetAfterReadingNewData I SetInCaseOfError I ErrorCode I ArrayForValuesRead 166 33002515 07 2012 READREG Representation in LD Representation READREG Instance READREG EN StartReadOnce bids Aa nor 2 SetInCaseOfError DeviceAddress NODEADDR RoutingPath ROUTPATH STATUS ErrorCode Offset Address SLAVEREG NumberOfRegisters NO REG ArrayF or ValuesRead REG READ REG RE an ArrayForValuesRead Representation in IL Representation CAL READREG Instanc REQ StartReadOnce NODEADDR DeviceAddress ROUTPATH RoutingPath SLAVEREG OffsetAddress NO REG NumberOfRegisters REG READ ArrayForValuesRead NDR gt SetAfterReadingNewData ERROR gt SetInCaseOfError STATUS gt ErrorCode Representation in ST Representation READREG Instanc REQ StartReadOnce NODEADDR DeviceAddress ROUTPATH RoutingPath SLAVEREG OffsetAddress NO REG NumberOfRegisters REG READ ArrayForValuesRead NDR gt SetAfterReadingNewData ERROR gt SetInCaseOfError STATUS gt ErrorCode 33002515 07 2012 167 READREG Parameter description Description of the input parameters
16. These sections can also be manually copied and modified 50 33002515 07 2012 Language Differences Overview This chapter contains information about language differences What Is in This Chapter This chapter contains the following topics Topic Page Functions Not Present in Unity 53 EFB Replaced by Function 54 FFBs Not Available For All Platforms 55 INOUT Parameters 59 Parameter Type Changed 60 ANY_ARRAY WORD Parameters 61 Unique Naming required 62 Incomplete LD Generation 63 LD Execution Order Changed 64 Constants 68 Indices in ST and IL 69 Calculate with TIME and REAL 70 WORD Assignments to BOOL Arrays 71 Topological Address Overlapping 72 Substitute QD by MF 73 Structure Alignment Changed 74 Undefined Output on Disabled EFs 75 Variables at Empty Pins 77 SFC Section Retains its State When Performing an Online Modification 78 SFCCNTRL Function Block in Unity Behaves Different to Concept 79 Weekday Numbering 80 33002515 07 2012 51 52 Language Differences Topic Page System Timer 81 Initial Values 82 Macros 84 33002515 07 2012 Language Differences Functions Not Present in Unity DFB Wrapper Manual Correction Functions from Concept that are not present in Unity get a DFB wrapper if they are called in ST sections e g WORD AS UDINT For example WAUD UDINT WORD AS
17. Unusual response received 05 Router node data path busy 06 Slave out of order 07 Wrong destination address 08 Unauthorized node type in routing path 10 Slave has rejected the command 20 Slave has lost an activated transaction 40 Unexpected master output path received 80 Unexpected response received F001 Wrong destination node specified for MSTR operation 124 33002515 07 2012 CWRITREG Continuous register writing 9 Introduction This chapter describes the CWRI TRI What Is in This Chapter This chapter contains the following topics EG block Topic Page Description 126 Mode of Functioning 129 Parameter description 130 33002515 07 2012 125 CWRITEREG Description Function description This derived function block writes continuously to the register area It transfers data from the PLC via Modbus Plus to a specified slave destination processor EN and ENO can be configured as additional parameters NOTE When programming a CWRI TREG function you must be familiar with the routing procedures used by your network Modbus Plus routing path structures will be described in detail in Modbus Plus Network Planning and Installation Guide NOTE This function block only supports the local Modbus Plus interface no NOM If using a NOM please work with the CWRITE REG bl
18. 1 for one scan in case of error STATUS WORD Error Code 190 33002515 07 2012 WRITEREG Mode of Functioning Function mode of WRITEREG blocks Although a large number of WRITEREG function blocks can be programmed only four write operations may be active at the same time It makes no difference whether these operations are performed using this function block or others e g MBP_MSTR CWRITE REG All function blocks use one data transaction path and require multiple cycles to complete a task If several WRITEREG function blocks are used within an application they must at least differ in the values of their NO REG or WRIT parameters The status signals DONE and ERROR report the function block state to the user program The complete routing information must be separated into two parts e inthe NODEADDR of the destination node regardless of whether it is located in the local segment or in another segment and e the routing path in case there is a link via network bridges The resulting destination address consists of these two information components The routing path is a DINT data type which is interpreted as a sequence of two digit information units It is not necessary to use 00 extensions e g both routing paths 4711 and 47110000 are valid for NODEADDR 34 the result is destination address 47 11 34 00 00 33002515 07 2012 191 WRI
19. RIO status RIO STAT for DlOistatus STAT trare u end READREG Read Description nasse x I Te Trou Mode of Functioning Parameter RIOSTAT Module function status RIO Description eorr ep x TEE hr EE SET Setting the hardware clock Time Of Day Description ese Bea Ener ES WORD AS BYTE DFB Type conversion Description aan WORD DFB Type conversion Description xx cuu bat tA aaa Re RR AER AUR ER WRITEREG Write Description 2 rt ad Ithouee ciu ni haie che RE Mode of Functioning Parameter FAQ B lld Errors General 225 2 Let epi eet ad bite eS Object Link Creation Object Must be Connected to a Link Together with Variable isn t Data Type xxxx Empty DFB to Replace Obsolete EFB Undefined Symbol
20. c2 2 c2222 c3 f c3 c3333 e FBI 7 604 7 613 7 622 450 CTU CTU CTU EN ENO EN ENO EN ENO c6 c6 c6666 cu Qr CU qQ CU qQ q51 c7 c7 c7777 R R R 1232 gt PV CVE 123 gt PV CVE 12333 gt PV CVE 44 33002515 07 2012 Requirements The wrapped LD Network after the conversion to Unity f 4 c3 4 gt CON_00001 gt CON 00002 FBI 7 604 FBI 7 613 MIU CTU CTU ENS EN ENO c6 c6 c6666 CU ar CU Q c c 7777 R R PV QV PV CV CON 00003 c2222 CON 00001 c3333 c4444 CON 00002 7 622 450 CTU rt gt 00003 gt IEN gt CON_00004 gt IcU 951 gt 00005 R e 12333 py Objects to recognize transitions The different ways of handling ladder diagram LD objects in Concept calling an FB and in Unity Pro system call makes the use of State RAM variables 0x 1x register necessary Because of the requirement that several write accesses to the Ox 1x register are possible during a cyclical sweep there can be differing Online behavior between Concept and Unity Pro 33002515 07 2012 45 Requirements Macros The objects affected are e Contact to recognize positive transitions e Contact to recognize negative t
21. from Unity V2 0 onwards it is automatically converted Syntax with Concept 2 5 inl x1 in2 x2 outl gt x3 out2 gt X4 in1 in2 out1 and out2 are type ANY Generic EFBs in Concept List of generic EFBs in Concept e COMM library e XXMIT e CONT library e DEADTIME e EXTENDED library e HYST e INDLIM e LIMD e SAH e LIB984 library FIFO LIFO R2T SRCH T2T GET 3X GET 4X PUT 4X 33002515 07 2012 47 Requirements Declaring EFBs The declaration of EFBs in Unity Pro is found in the variables editor and no longer in the ST IL sections as with Concept EFBs declared this way are no longer limited to only one section 48 33002515 07 2012 Requirements Programming Language LL984 General For some programming languages there are restrictions to observe when converting a project from Concept to Unity Pro LL984 is no longer supported by Unity Pro Unity Pro only supports IEC conforming programming The programming languages LL984 and LL984 specific configurations are not supported by Unity Pro See also Restrictions for old LL984 configurations page 20 33002515 07 2012 49 Requirements Programming Language FBD General For some programming languages there are restrictions to observe when converting a project from Concept to Unity Pro Macros When converting a Concept project to Unity Pro sections created using macros are also converted
22. 1 copies the DIO status from the status table to the output DIO STAT Description of the output parameters Parameters Data type Meaning PLC STAT PLCSTATE Contains the PLC status RIO STAT RIOSTATE Contains the RIO status status for Quantum DIO STAT DIOSTATE Contains the DIO status I O communication status Note The name of this output is confusing This output only relates to the remote Drop Status Information S908 and not to the Distributed I O status To read the distributed I O status use the function block DIOSTAT see page 133 33002515 07 2012 151 PLCSTAT Derived Data Types Element description PLCSTATE Description of the PLCSTATE element Element Data type Meaning wordl WORD CPU status word2 WORD Hot Standby Status word3 WORD PLC status word4 WORD RIO Status word5 WORD Reserve word6 WORD Reserve word WORD Reserve word8 WORD Reserve word9 WORD Reserve 10 WORD Reserve wordll WORD Reserve Element description RIOSTATE Description of t he RIOSTATE element Element Data type Meaning wordl WORD I O station 1 module rack 1 word2 WORD I O station 1 module rack 2 word5 WORD I O station 1 module rack 5 word6 WORD I O station 2 module rack 1 word7 WORD I O station 2 module rack 2 word160 WORD I O station 32 module rack 5 152
23. BIT4 gt Bit5 BIT5 gt Bit6 BIT2 gt Bit3 BIT3 gt Bit4 BIT6 gt Bit7 BIT7 gt Bit8 BIT8 gt Bit9 BIT9 gt Bit10 BIT10 Bitll BIT11 gt Bit12 BIT12 gt Bit13 BIT13 gt Bit14 BIT14 gt Bit15 BIT15 gt Bit16 Parameter description Description of the input parameters Parameter Data type Meaning IN WORD Input Description of the output parameters Parameter Data type Meaning BITO BOOL Output BITO BIT1 BOOL Output BIT1 BIT15 BOOL Output BIT15 33002515 07 2012 185 WORD TO BIT DFB 186 33002515 07 2012 WRITEREG Write register 21 Introduction This chapter describes the WRITE What Is in This Chapter This chapter contains the following topics REG block Topic Page Description 188 Mode of Functioning 191 Parameter description 192 33002515 07 2012 187 WRITEREG Description Function description With a rising edge at the REO input this function block writes a register area from the PLC to an addressed slave via Modbus Plus EN and ENO can be configured as additional parameters NOTE When programming a WRITEREG function you must be familiar with the routing procedures used by your network Modbus Plus routing path structures will be described in detail in Modbus Plus Network Planning and Installation Guide NOTE This derived
24. ConvError objects are generated in the LD programs during the conversion to draw attention to special issues e When this checkbox is not enabled no ConvError objects will be generated during the conversion When analyzing in Concept the execution order is calculated The result is shown in parentheses after the instance names in this image The selected block is executed in the middle of the other network even though it has no direct connection to it Concept calculates the execution order from the block position 64 33002515 07 2012 Language Differences This is the original section as it appears in Concept 123 ADD INT enn 2 ENO ware gt 3208 ADD_INT enn 5 q2 8 EN ENO The used variables are initialized in a way that the result of the comparator INT becomes true after execution of the first cycle in Concept var INT 2 ward INT 2 33002515 07 2012 65 Language Differences Testing execution in single cycle mode in Concept shows the expected result The comparator result becomes true after the first cycle 66 33002515 07 2012 Language Differences Unity The converted network reflects the Concept execution order in the graphical position of the blocks The image also shows the execution status stopped at a breakpoint in the first cycle The comparator EQ INT is already executed and will not deliver a tru
25. IND 2MaximumViolation 140 33002515 07 2012 LIMIT IND DFB Parameter description Description of the input parameters Parameter Data type Meaning LimitMinimum BOOL BYTE WORD Limit of minimum value DWORD INT DINT NT UDINT REAL ME o o L BYTE WORD Input RD INT DINT NT UDINT REAL Input gt o 5 o o L BYTE WORD Limit of maximum value RD INT DINT NT UDINT REAL ME LimitMaximum gt o Description of the output parameters Parameter Data type Meaning MinimumViolation BOOL Display of minimum value violation Output BOOL BYTE WORD Output DWORD INT DINT UINT UDINT REAL TIME MaximumViolation BOOL Display of maximum value violation 33002515 07 2012 141 LIMIT IND DFB 142 33002515 07 2012 LOOKUP TABLE1 DFB Traverse progression with 1st degree 1 4 interpolation Introduction This chapter describes the LOOKUP TABLI What Is in This Chapter This chapter contains the following topics 1 DFB block Topic Page Description 144 Detailed description 146 33002515 07 2012 143 LOOKUP TABLE1 DFB Description Function description This function block linearizes characteristic curves by means of interpolation The function block works with variable support point width The number of xiv
26. MFB MMF_MOVE MFB MMF_RST MFB MMF_SUB MFB MMF_USUB MFB 33002515 07 2012 95 Possible application behavior change Library Obsolete Lib Family Function Block Concerned Pin CLC PRO ALIM Y COMP PID Y OFF SP CAS DERIV Y INTEG LAG LAG2 LEAD LAG PD OR PI PI PID PID P PIP PPI VLIM lt lt lt lt lt XXXIX lt lt Extensions Compatibility R2T OFF SRCH INDEX T2T OFF Concept Converter Behavior The Concept Converter normally handles the layout change in the following way when a Concept application is imported into Unity e Case 1 A variable is connected to the output pin in Concept The Concept Converter keeps the variable at the output side of the IN OUT pin and adds the variable additionally at the input side of the pin e Case 2 A link is connected to the output pin in Concept The Concept Converter removes the link creates a new variable of the needed type and writes this new variable to the start and end position of the removed link Additionally the variable is added to the input side of the pin 96 33002515 07 2012 Possible application behavior change Further Potential Problems The following tables contain blocks where also some consequences of the architectural change from Concept to Unity may arise in case
27. Obey all safety messages that follow this symbol to avoid possible injury or death A DANGER DANGER indicates an imminently hazardous situation which if not avoided will result in death or serious injury A WARNING WARNING indicates a potentially hazardous situation which if not avoided can result in death or serious injury This is the safety alert symbol It is used to alert you to potential 33002515 07 2012 7 PLEASE NOTE CAUTION CAUTION indicates a potentially hazardous situation which if not avoided can result in minor or moderate injury NOTICE NOTICE is used to address practices not related to physical injury Electrical equipment should be installed operated serviced and maintained only by qualified personnel No responsibility is assumed by Schneider Electric for any consequences arising out of the use of this material A qualified person is one who has skills and knowledge related to the construction and operation of electrical equipment and its installation and has received safety training to recognize and avoid the hazards involved 33002515 07 2012 About the Book A At a Glance Document Scope This document describes the functionality and performance scope of the Concept Application Converter for Unity Pro Validity Note This document is valid for Unity Pro from Version 6 0 Related Documents Title of Documentation Reference Numb
28. Object has not been created during import r 6 9 21 TIME TO EN ENO IN OUT 5920 0UT IN94 IN OUT c 13 E1002 syntax error D GRP EN ENO FB 9 gt FBI_9_23 Q gt ED OUT FBI 9 IN98 4DTIME FBI 9 23 0 4 N Import Error gt FBI_9_17 BIT1 gt A 33002515 07 2012 199 FAQ Build Errors Object Must be Connected to a Successor Cause A message as follows can have its reason in a Concept 2 1 LD bug TANKVLVS lt DFB gt be connected to a successor TVALVE r 93 c 3 E1218 Object must at least the Right Power Rail When connecting contacts to an OR a vertical short it sometimes happens that the intended first output contact is connected to the input of the OR Concept even shows this in its graphics with a small dot at the input of the OR VO1ALARM VO2ALARM V14ALARM V18ALARM V26ALARM V27ALARM V28ALARM ALARM a Nec In this case the ALARM coil is connected ONLY to the ontact VO1 ALARM The OR output is connected to NOTHING Consequently the Unity V1 1 converter translates this to VO1ALARM ALARM O VO2ALARM V14ALARM V18ALARM V26ALARM V27ALARM V28ALARM 200 33002515 07 2012 FAQ Build Errors Link Together with Variable isn t Allowed Overview This error is report
29. PLCs that restart differently are not the same after the first program run There are two different types of restart behavior 1 All 16 bit PLCs all Momentum Quantum 113 213 424 continue executing the program at the point at which it was interrupted 2 All 32 bit PLCs Quantum 434 534 start the program run at the beginning Unity Pro supports the 1st type of restart behavior described above The Concept State RAM register addresses are assigned to IEC conforming addresses in Unity Pro module addresses are converted either to flat addresses or to topological addresses 33002515 07 2012 23 Requirements State RAM Register Without I O Module State RAM register addresses without assigned l O modules are represented with flat addresses Concept Unity Pro 4x MWx 3x lWx 1 Ox 1 corrected by the user 1 If Modicon M340 is the target platform there is no equivalent for input State RAM registers IWx The addresses are converted formally to flat addresses and must be For this the register number is added to the end of the introduction The address reads as follows IM W Register number State RAM Register With I O Module State RAM register addresses with assigned modules can either be represented on Quantum with flat addressing as described above or with topological addressing To define that State RAM register addresses w
30. REG_CNT DATA_B LK IDN_CHK Q ERROR NOT_EQ IDN_XFER Q ERROR OUT_RAW OUTCONV MMF_ESUB ERROR RET1 RET2 RETS MMF_INDX Q ERROR MMF_JOG Q ERROR MMF_MOVE Q ERROR MMF_RST Q MMF_SUB Q ERROR RET1 RET2 RETS MMF USUB ERROR RET1 RET2 amp 98 33002515 07 2012 Possible application behavior change Library Obsolete Lib Family Function Block Concerned Pin CLC DELAY Y PI ERR PID1 ERR PIDP1 ERR THREE_STEP_CON1 ERR_EFF THREEPOINT_CON1 ERR_EFF TWOPOINT_CON1 ERR_EFF CLC PRO COMP PID STATUS ERR DEADTIME Y FGEN Y N INTEG STATUS PCON2 ERR_EFF PCON3 ERR_EFF PD_OR_PI ERR STATUS PDM Y_POS Y_NEG Pl ERR STATUS PID ERR STATUS PID_P ERR STATUS PIP ERR SP2 STATUS PPI ERR SP2 STATUS PWM Y_POS Y_NEG QPWM Y_POS Y_NEG SCON3 ERR_FF VLIM STATUS Extensions Compatibility FIFO EMPTY FULL LIFO EMPTY FULL NOTE The pins were not changed because in normal operation mode of the blocks this has no influence 33002515 07 2012 99 Possible application behavior change 100 33002515 07 2012 The Conversion Process Conversion Process General A Concept project is exported from Concept and then converted automatically into a Unity Pro project using the Unity Pro Concept Converter Conversion Process Representation of the conversion process Concept Unity Pro
31. The individual words of the DINT input are assigned to the outputs according to the output names EN and ENO can be configured as additional parameters Representation in FBD Representation DINT_AS WORD DINT variable IN LOW LowWord HIGH HighWord Representation in LD Representation DINT AS WORD EN DINT variable IN LOW LowWord HIGH HighWord 33002515 07 2012 131 DINT AS WORD DFB Representation in IL Representation CAL DINT AS WORD DFB Instance IN DINT variable LOW gt LowWord HIGH gt HighWord Representation in ST Representation DINT AS WORD DFB Instance IN DINT variable LOW gt LowWord HIGH gt HighWord Parameter description Description of the input parameters Parameters Data type Meaning IN DINT Input Description of the output parameters Parameters Data type Meaning LOW WORD least significant word HIGH WORD most significant word 132 33002515 07 2012 DIOSTAT Module function status DIO 1 1 Description Function description This function provides the function status for I O modules of an I O station DIO Each module slot is displayed as an output status bit The bit on the far left side in status corresponds to the slot on the far left side of the station NOTE If a module of the station is configured and
32. Without Resetting In Unity it is possible to do online modifications of an SFC chart without resetting it The SFC chart retains its state and will continue the execution NOTE In Concept the online modification of an SFC chart usually results in the resetting of the chart 78 33002515 07 2012 Language Differences SFCCNTRL Function Block in Unity Behaves Different to Concept RESETSFC Vs INIT In Concept the RESETSFC input of SFCCNTRL resets all action variables of the related SFC section In Unity the INIT input of SFCCNTRL that has a similar function as RESETSFC input in Concept only resets the action variables that have been set by the SFC step Action variables for example set by user logic or the Animation Table will not be reset 33002515 07 2012 79 Language Differences Weekday Numbering Different Numbering In Unity the numbering of weekdays is different than Concept Number Unity Concept 1 Monday Sunday 7 Sunday Saturday SET TOD GET TOD Function blocks SET and GET will be converted to Unity as DFBs which work in both directions Because SET TOD expects a Concept numbered weekday and translates it as a Unity coded value Also the reads Unity value and returns to User the Concept value System Word SW49 NOTE We do not recommend that you mix GET TOD and SET TOD programming with the use of system word
33. application These DFBs contain all the Concept parameters An error message is displayed that says that the programmatic content for these DFBs must still be created Generic EFs There are only a few generic elementary functions in Concept EFs e g MOVE SEL MUX With many other functions the elementary data type is added to the name of the function In Unity Pro many of these functions are used without the elementary data type added to the name as defined in IEC 61131 Therefore the converter removes the added data type from the name of the function In some cases the use of generic functions in Unity Pro will lead to analytic errors In these cases disable the Generate Generic EFs check box Open the Conversion Settings tab via Tools Options in Unity Pro to enable disable the Generate Generic EFs check box before converting e When this checkbox is enabled the converter removes the added data type from the name of the function e When this checkbox is not enabled the converter will leave the added data type in the name of the function 33002515 07 2012 31 Requirements DIAGNO Library SYSTEM Library FUZZY Library HANDTABL Library When converting Concept to Unity Pro for all DIAGNO blocks the station parameter is omitted The following EFBs from the DIAGNO library in Concept are converted to empty DFBs in Unity Pro e ACT DIA e XACT DIA e ERR2HMI e ERRMSG NOTE These DFBs created in Unity
34. check the result according to the process needs The settings of the hardware modules parameters are not converted but set to default values and must be entered for each module in Unity Pro Channel objects are converted as far as possible Nevertheless the program may have to be adapted according to the different behavior with the original module Quantum Applications Concept Quantum applications are converted to Unity Pro Quantum applications Compact Applications With global conversion Concept Compact applications are converted to Quantum applications with a default hardware configuration containing a CPU 140 CPU 534 14A U and a power supply 140 CPS 424 00 With partial conversion conversion wizard it is recommended to prepare a Modicon M340 hardware configuration Momentum Applications With global conversion Concept Momentum applications are converted to Quantum applications with a default hardware configuration containing a CPU 140 CPU 534 14A U and a power supply 140 CPS 424 00 With partial conversion conversion wizard it is recommended to prepare a Modicon M340 hardware configuration Safety PLC NOTE It is not possible to recover an application from Concept to Unity Pro Safety PLC To build a safety system refer to the Safety Manual 33002515 07 2012 19 Requirements Configuration General Unity Pro only supports IEC conformant programming Concept sections created using the LL984 program
35. is used to convert Concept applications into Unity Pro This means that Concept programs can also be operated in Unity Pro Substitute objects are used in place of objects that cannot be converted The Unity Pro project can be analyzed using the main menu Create Analyze Project Subsequently messages are displayed in the output window to find the substitute objects Elements on the Concept application that can not be converted are logged in the conversion report Descriptions of the respective procedures are provided in chapter Conversion procedure see page 103 NOTE Back conversion from Unity Pro to Concept is not possible The conversion is carried out in 4 steps 1 In Concept Export the Concept application using the Concept converter which creates an ASCII file ASC NOTE Do not use the project with used DFBs Re Connect to Equal option when creating the ASC file Unity Pro cannot import the application if this option is used 2 In Unity Pro Open the exported ASCII file ASC in Unity Pro 3 In Unity Pro Automatic conversion of the ASCII file into Unity Pro source file format 4 In Unity Pro Automatic import of the Unity Pro source file Conversion options for Concept projects You can enter conversion options see Unity Pro Operating Modes in Unity Pro before the conversion that have effects on the conversion result Atrium cannot be converted Conversion Wizard Atrium configurations cannot be con
36. next Therefore invocation of a function block with the same arguments input variables need not always yield the same output values Assignment of a Value Assignment of a value to an output variable of a function block is not allowed except from within the function block The assignment of a value to the input of a function block is permitted only as part of the invocation of the function block Unassigned or unconnected inputs of a function block shall keep their initialized values or the values from the latest previous invocation if any Allowable usage of function block inputs and outputs are summarized in table below using the function block FF75 of type SR 33002515 07 2012 89 Possible application behavior change The examples are shown in the ST language Usage Inside function block Outside function block Input read IF IN1 THEN Not allowed 1 2 Input Not allowed 1 INST IN1 A IN2 B assignment Output read OUT OUT AND NOT IN2 C FB INST OUT Output OUT 1 Not allowed assignment In out read IF INOUT THEN IF FB1 INOUT THEN In out INOUT OUT OR FB INST INOUT D assignment 1 2 Those usages listed as not allowed in this table could lead to implementation dependent unpredictable side effects Reading and writing of input output and internal variables of a function block may be performed by the communication function op
37. of multi assignment because in Concept e The blocks do not write their listed output pin in case of errors inside the block e The blocks do not write their listed output pin in COLD or WARM INIT scan e The blocks write their listed output pin conditionally depending from internal mode of operation Library CONT CTL Family Function Block Concerned Pin Conditioning DTIME OUT SCALING OUT TOTALIZER OUT INFO Controller AUTOTUNE TRI INFO PI B OUT DEV PIDFF OUT D INFO STEP2 DEV STEP3 DEV Output Processing MS OUTD STATUS MS DB OUTD STATUS SPLRG OUT1 OUT2 Setpoint Management RAMP SP RATIO KACT SP SP SEL LSP MEM 33002515 07 2012 97 Possible application behavior change Library Management Family Function Block Concerned Pin Analog I O _SET CHANNEL Configurationj O SET CHANNEL Analog Scaling NORM WARN WARN PHYS WARN WARN SCALE WARN WARN Quantum ACIO40 CHANNL1 16 Configurationj ACO130 CHANNEL1 8 AII330 CHANNEL1 8 INTERNAL AII33010 CHANNEL1 8 AIO330 CHANNEL1 8 ARIOSO CHANNEL1 8 Library Motion Family Function Block Concerned Pin MMF Start CFG_CP_F Q ERROR CFG_CP_V Q ERROR CFG_CS Q ERROR CFG_FS Q ERROR CFG_IA Q ERROR CFG_RA Q ERROR CFG_SA Q ERROR DRV_DNLD Q ERROR IDN_CNT DRV_UPLD Q ERROR
38. status PLCSTATE word2 Bit allocation 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Bit Allocation 10 Run light OFF 11 Memory protect OFF 12 Battery failed Bit allocation 1 2 3 4 5 6 7 8 9 10 111121 13 14 15 16 Bit Allocation 1 CHS 110 8911 R911 present and OK 11 0 CHS shift switch set to A 1 CHS shift switch set to B 12 0 PLCs have equal logic 1 PLCs have unequal logic 13 14 Remote system condition Dec binary 1 0 1 Offline 2 10 Primary 3 11 Standby 15 16 Local system condition Dec binary 1 0 1 Offline 2 1 0 Primary 3 1 1 Standby 154 PLCSTAT PLC status PLCSTATE word3 RIO status PLCSTATE word4 Bit allocation 1 MESI Lea 10 11 12 13 14 15 16 Bit Allocation 1 First cycle Bit allocation 1 2 4 10 11 12 13 14 15 16 Bit Allocation 1 IOP defect 2 IOP timeout 3 IOP Loopback 4 IOP memory disturbance 13 16 00 IO has not responded 01 no response 02 Loopback defect 33002515 07 2012 155 PLCSTAT RIO status RIO STAT for Quantum General information NOTE The information corresponds to status table words 12 to 171 in the PLC status
39. the instance data to the connected output variables 3 This is valid for all EDTs Derived data types and more complex data types treated still by reference in some cases 92 33002515 07 2012 Possible application behavior change Addressing Modes The addressing mode of a Function Block element is directly linked to the type of the element The currents known addressing modes are e by value VAL e by address L ADR e by address Number of elements L ADR LG Table with four columns and legend EDT STRING DDT Array DDT ANY ANY Except Struct ARRAY STRING Input VAL L ADR LG L ADR LG L ADR L ADR LG L ADR LG parameter Input Output L ADR 1 L ADR LG L ADR LG L ADR L ADR LG L ADR LG parameter Output VAL VAL L ADR LG VAL L ADR LG L ADR LG parameter Public VAL VAL VAL Variable Private VAL VAL VAL Variable 1 Except for BOOL type the addressing mode is VAL Function Block Invocation The following rules must be taken into account while invoking a Function Block instance e All input output parameters have to be filled e All input parameters using the L ADR or L ADR LG addressing modes have to filled e All output parameters using the L ADR or L ADR LG addressing modes have to filled All other kind of parameters could be omitted while Function Block Instance invocation For input parameters the following rul
40. then wrapped into the next line If this causes networks to vertically overlap the overlapping of the logic can lead to undesired automatic links in Unity Pro Open the Conversion Settings tab via Tools Options in Unity Pro to enable disable the Separate LD Networks check box before converting e Whenthis checkbox is enabled recognized networks are moved vertically which prevents overlapping e When this checkbox is not enabled recognized networks are not vertically moved The original vertical arrangement of the graphics is maintained but error messages may occur due to overlapping LD Column Break Inserting additional columns may cause a network to exceed its maximum section width and it is then wrapped into the next line Open the Conversion Settings tab via Tools Options in Unity Pro to edit the LD Column Break option before converting The number entered here determines the column after which a network is wrapped to the next column 33002515 07 2012 438 Requirements Wrapping networks that are too wide Since the width of the networks is expanded during the conversion the maximum section width may be exceeded To show the network that is now too wide the part of the network that reaches beyond the far right edge of the section will be shown in a new row The connections are shown as connectors Example of an LD Network in Concept
41. to 0 or must be left unconnected The parameter can be specified as an address located variable unlocated variable or literal Start of the destination area in the addressed slave to which the source data are written The destination area always resides within the 4x register area SLAVEREG expects the destination address as an offset within the 4x area The leading 4 must be omitted e g 59 contents of the variables or value of the literal 40059 The parameter can be entered as an address located variable unlocated variable or literal Number of registers to be written to slave processor 1 100 The parameter can be specified as an address located variable unlocated variable or literal An ANY ARRAY WORD thatis the same size as the planned transmission must be agreed upon 2 No REG for this parameter The name of this array is defined as a parameter If the array is defined too small then only the amount of data is transmitted that is present in the array The parameter must be defined as a located variable If MSTR error code is returned see Modbus Plus Error Codes page 123 The parameter can be specified as an address located variable or unlocated variable 130 33002515 07 2012 DINT AS WORD DFB Type conversion 1 0 Description Function description This derived function block converts one input word from the DINT data type to 2 output values of the WORD data type
42. topics Topic Page Exporting a Project from Concept 104 Importing a Project into Unity Pro 105 Missing Datatypes at the Beginning of the Import 106 Converting Only Parts of a Concept Application 107 Removing Accidentally Included Concept Macros 108 Initialization Values 109 33002515 07 2012 103 Conversion Procedure Exporting a Project from Concept General A Concept project that should be used in Unity Pro must first be exported from Concept It is then possible to use the Unity Concept Converter to make the conversion to a Unity Pro project Export Project Perform the following steps to export a project Step Procedure 1 Start the Concept Converter program from the Concept program group 2 Select File gt Export to open the menu for selecting the export range Select the export range e Project with DFBs All project information including the DFBs and data structures derived data types used in the project are exported e Project without DFBs All project information including all data structures derived data types but not DFBs and macros is exported Result The dialog box for selecting the files to be exported is opened 4 Select the following file extension e Export projects Select the extention prj from the format list box 5 Select the project and confirm using OK Result The project is stored in the current directory as an ASCII file asc
43. works correctly the corresponding bit is set to 1 EN and ENO can be configured as additional parameters Representation in FBD Representation DIOSTAT Instance DIOSTAT LinkNumber LINK STATUS Status DropNumber DROP Representation in LD Representation DIOSTAT Instance DIOSTAT EN ENO LinkNumber LINK STATUS Status DropNumber DROP 33002515 07 2012 133 DIOSTAT Representation in IL Representation CAL DIOSTAT Instance LINK LinkNumber DROP DropNumber STATUS gt Status Representation in ST Representation DIOSTAT Instance LINK LinkNumber DROP DropNumber STATUS gt Status Parameter description Description of the input parameters Parameter Data type Meaning LINK UINT Link No 0 2 DROP UINT I O station no 1 64 Description of the output parameters Parameter Data type Meaning STATUS WORD Status bit pattern see page 133 of an 1 O station 134 33002515 07 2012 GET TOD Reading the hardware clock Time Of Day 12 Description Function description This function block searches together with the other function blocks in the HSBY group the configuration of the respective PLC for the necessary components These components always refer to the hardware actually connected Therefore the correct functioning of this function bl
44. 14 DDT Component Is Missing 215 EHC Parameters Out of Range 216 Not a Valid Address 217 140 NOG 111 00 Configuration Not Converted 218 33002515 07 2012 197 FAQ Build Errors General Overview After converting a Concept application the Rebuild All Menu should be invoked If the application is not built with this command all error messages in the build output window should be examined by double clicking on them This opens the section with the origin of the problem The whole section should be compared to the original in Concept and functional differences should be manually corrected in the converted application Example Examples for messages Potential Messages SCADA Info MAST 172 4 E1218 Object must be connected to a successor at least the Right Power Rail FC124 Visual call up part 3 MAST r 31 c 5 E1189 converter error Object Link creation error Link pin can not be located in original object Link to pin linkSource row 30 col 4 Object Pin 0UT1 can not be created Object has not been created during import Short forms of potential messages are given in the following list which are linked to explanation details Object Link Creation Error page 199 Object Must be Connected to a Successor page 200 Link Together with Variable isn t Allowed page 201 Data Type Expected page 202 Empty DFB to Replace Obsolete EFB page 207 Undefined Sy
45. 33002515 12 Unity Pro Concept Application Converter User Manual 07 2012 Schneider www schneider electric com Electric The information provided in this documentation contains general descriptions and or technical characteristics of the performance of the products contained herein This documentation is not intended as a substitute for and is not to be used for determining suitability or reliability of these products for specific user applications It is the duty of any such user or integrator to perform the appropriate and complete risk analysis evaluation and testing of the products with respect to the relevant specific application or use thereof Neither Schneider Electric nor any of its affiliates or subsidiaries shall be responsible or liable for misuse of the information that is contained herein If you have any suggestions for improvements or amendments or have found errors in this publication please notify us No part of this document may be reproduced in any form or by any means electronic or mechanical including photocopying without express written permission of Schneider Electric All pertinent state regional and local safety regulations must be observed when installing and using this product For reasons of safety and to help ensure compliance with documented system data only the manufacturer should perform repairs to components When devices are used for applications with technical safety requirements the relevan
46. 5 07 2012 WORD AS BYTE DFB Type conversion 1 9 Description Function description This derived function block converts one input word from the WORD data type to 2 output values of the BYTE data type The individual bytes of the word at the input are assigned to the outputs according to the output names EN and ENO can be configured as additional parameters Representation in FBD Representation WORD AS BYTE WORD variable IN LOW LowByte HIGH HighByte Representation in LD Representation WORD_AS BYTE EN ENO WORD variable IN LOW LowByte HIGH HighByte 33002515 07 2012 181 WORD AS BYTE DFB Representation in IL Representation CAL WORD AS BYTE DFB Instance IN WORD variable LOW gt LowByte HIGH gt HighByte Representation in ST Representation WORD AS BYTE DFB Instance IN WORD variable LOW gt LowByte HIGH gt HighByte Parameter description Description of the input parameters Parameter Data type Meaning IN WORD Input Description of the output parameters Parameter Data type Meaning LOW BYTE least significant byte HIGH BYTE most significant byte 182 33002515 07 2012 WORD TO DFB Type conversion 20 Description Function description This derived function block converts one input word from the WORD data type to 16 output values of the BOO
47. AL WRITEREG Instance REQ StartWriteOnce NODEADDR DeviceAddress ROUTPATH RoutingPath SLAVEREG OffsetAddress NO REG NumberOfRegisters REG WRIT SourceDataArea DONE gt SetAfterWritingData ERROR gt SetInCaseOfError STATUS gt ErrorCode Representation in ST Representation WRITEREG Instance REQ StartWriteOnce NODEADDR DeviceAddress ROUTPATH RoutingPath SLAVEREG OffsetAddress NO REG NumberOfRegisters REG WRIT SourceDataArea DONE gt SetAfterWritingData ERROR gt SetInCaseOfError STATUS gt ErrorCode 33002515 07 2012 189 WRITEREG Parameter description Description of input parameters Parameter Data type Meaning REO BOOL With a rising edge at the REO input this function block writes a register area from the PLC to an addressed slave via Modbus Plus NODEADDR INT Device address within the target segment ROUTPATH DINT Routing path to target segment SLAVEREG DINT Offset address of the first 4x register in the slave to be written to NO_REG INT Number of registers to be written from slave Description of input output parameters Parameters Data type Meaning REG WRIT ANY ARRAY WORD Source data field A data structure must be declared as a located variable for the source file Description of the output parameters Parameters Data type Meaning DONE BOOL Set to 1 for one scan after writing data ERROR BOOL Set to
48. Area STATUS gt ErrorCode 33002515 07 2012 127 CWRITEREG Parameter description Description of the input parameters Parameters Data type Meaning NODEADDR INT Device address within the target segment ROUTPATH DINT Routing path to target segment SLAVEREG DINT Offset address of the first 4x register in the slave to be written to NO REG INT Number of registers to be written from slave Description of input output parameters Parameters Data type Meaning REG WRIT ANY ARRAY WORD Source data field A data structure must be declared as a located variable for the source file Description of the output parameters Parameters Data type Meaning STATUS WORD Error Code 128 33002515 07 2012 CWRITEREG Mode of Functioning Function mode of CWRITREG blocks Although an unlimited number of CWRITREG function blocks can be programmed only four write operations may be active at the same time It makes no difference whether these operations are performed using this function block or others e g MBP MSTR WRITEREG All function blocks use one data transaction path and require multiple cycles to complete a task If several CWRITREG function blocks are used within an application they must at least differ in the values of their NO REG or WRIT parameters
49. BADNUMODS Module number in 1 station 15 PRECONDRP I O station is already configured 16 PRECONPRT Port is already configured 17 TOOMNYOUT More than 1024 output locations 18 TOOMNYINS More than 1024 input points 20 BADSLTNUM Module slot address 21 BADRCKNUM Rack address 22 BADOUTBC Number of output bytes 23 BADINBC Number of input bytes 25 BADRF1MAP First reference number 26 BADRF2MAP Second reference number 158 33002515 07 2012 PLCSTAT Code Error Meaning location of error 27 NOBYTES No input or output bytes 28 BADDISMAP 1 0 marker bit not at 16 bit limit 30 BADODDOUT Unmated odd output module 31 BADODDIN Unmated odd input module 32 BADODDREF Unmated odd module reference 33 BAD3X1XRF 1x reference after 3x register 34 BADDMYMOD Dummy module reference already in use 35 NOT3XDMY 3x module is not a dummy module 36 NOT4XDMY 4x module is not a dummy module 40 DMYREAL1X Dummy module then real 1x module 41 REALDMY1X Real then 1x dummy module 42 DMYREAL3X Dummy module then real 3x module 43 REALDMY3X Real then 3x dummy module Status of cable A DIOSTATE word2 word3 word4 Bit allocation for word2 14 15 16 Bit Allocation 1 8 Counts frame fields 9 16 Counts DMA receiver overflows Bit allocation for word3
50. Different to Concept 79 Weekday Numbering 80 System TIME oos si ne ee dak Ee X MU US 81 laitial Values east ROME CREER 82 MAacTOS 5 Ee eg aia 84 Possible application behavior change 85 General er obe baa RS 86 Concept Behavior 88 IEC Demands ERE nd dune es 89 Unity 92 Consequences bi cdr deci b ie de DA e Ets E ee ets 94 The Conversion 101 Conversion 101 Conversion Procedure 103 Exporting a Project from 104 Importing a Project into Unity 105 Missing Datatypes at the Beginning of the Import 106 Converting Only Parts of a Concept Application 107 Removing Accidentally Included Concept 108 Initialization Values 109 Blocks from Concept to Unity Pro 111 BYTE TO BIT DFB Type conversion 113 Description ursi enge eA Rad regu 113 CREADREG Continuous register reading 117 Description ii ik etek oe tok RUE ERAS E SE
51. L data type The individual bits of the word at the input are assigned to the outputs according to the output names BITO 2 1 WORD Y BI 2 O 21 20 bw BIT14 214 BIT15 215 EN and ENO can be configured as additional parameters 33002515 07 2012 183 WORD TO BIT DFB Representation in FBD Representation WORD TO BIT DFB Instance WORD TO BIT DFB WORD variable IN BITO Bit1 BIT1 Bit2 BIT2 Bit3 BIT3 Bit5 BITS Bits BIT6 Bit7 Bit8 BITS Bit9 BIT9 Bit10 BIT10 Bit11 BIT11 Bit12 BIT12 Bit13 BIT13 Bit14 BIT14 Bit15 BIT15 Bit16 Representation in LD Representation WORD TO BIT DFB Instance WORD TO BIT DFB EN ENO Biti WORD variable IN BITO Bit16 BITIS 184 33002515 07 2012 WORD TO BIT DFB Representation in IL Representation CAL WORD TO BIT DFB Instance IN WORD variable BITO gt Bitl BIT1 gt Bit2 BIT4 gt Bit5 BIT5 gt Bit6 BIT2 gt Bit3 BIT3 gt Bit4 BIT6 gt Bit7 BIT7 gt Bit8 BIT8 gt Bit9 BIT9 gt Bit10 BIT10 5Bitl11 BIT11 gt Bit12 BIT12 gt Bit13 BIT13 gt Bit14 BIT14 gt Bit15 BIT15 gt Bit16 Representation in ST Representation WORD TO BIT DFB Instance IN WORD variable BITO gt Bitl BIT1 gt Bit2
52. N RS E REI EA 118 Mode of Functioning 121 Parameter description 122 Modbus Plus Error 123 CWRITREG Continuous register writing 125 Description cisco re re of hod UD ob ab es 126 Mode of Functioning 129 Parameter description 130 DINT AS WORD DFB Type conversion 131 Descriptions our ee eerte hus 131 DIOSTAT Module function status DIO 133 Description RET Ren MAR CPP 1338 GET Reading the hardware clock Time Of Day 135 Description iei p ea emer 135 33002515 07 2012 Chapter 13 Chapter 14 Chapter 15 Chapter 16 Chapter 17 Chapter 18 Chapter 19 Chapter 20 Chapter 21 Appendices Appendix A LIMIT IND DFB Limit with indicator Descriptor sods sweet on Dee Hd LOOKUP TABLE1 DFB Traverse progression with 1st degree Description 22 22 is Detailed PLCSTAT PLC function statuS o Description as es VIRI Cb Derived Data PLC status PLG STAT teet teri the tad en ae
53. O O POINT END FOR END FOR FOR O BASE 1 TO 20 DO FOR O POINT 1 TO 16 DO IO SCAN OUT WORD O BASE SET BIT IN OUTPUT O BASE O POINT O POINT END FOR END FOR NO Conjunction With Other Messages This message can appear in conjunction with other messages e RESET CONV DFB RC HSK 1 r 2 c 2 E1063 call of non function block e RESET CONV DFB RC HSK 1 r 4 c 29 E1067 Q is not a member of SECT CTRL Related Source Code The source code related to this is in this case e RESET 147 CTRL TB RC INI AND V SYNCHRO PT t 500ns e T CONVRESET RESET CONV147 0 33002515 07 2012 211 FAQ Build Errors Double Use of the Instance Name Unity Pro associates the instance name to the derived data type SECT_CTRL even though it is intended to address a timer This usually happens if the Concept application used the instance name twice To find this out proceed as follows Step Action 1 Open the Concept asc export file and search the instance name without the figures at the end with a search command of the text editor Result In this case here we find STR RCI RC Eing nge SPS Ausg nge STRUCT AUTO BOOL Betriebsart Automatik Hand AXIS EN BOOL Achsen angew hlt Z UP BOOL Z Achse auf ESET PROG BOOL Programm
54. Pro have all the Concept parameters but no programmatic content An error message is displayed that says that the programmatic content for these DFBs must still be created During the program creation in Unity Pro replace the DFBs DIA and XACT DIA with the DFB XACT For all DIAGNO blocks which can be extended in Concept D PRE D GRP the extensible inputs IN1 INX are gathered together in one input This is implemented using a nested logic AND link In the FBD language the AND block is positioned at the same location as the DIAGNO block by the converter This overlap must be resolved manually by the user The SCT FALSE and LOOPBACK EFBs cannot be used in Unity Pro The FUZZY library is not supported with the normal Unity Pro range but can be installed as an optional library The HANDTABL library is no longer supported by Unity Pro 32 33002515 07 2012 Requirements EXPERTS Library The following Concept EFBs are converted to DFBs in Unity Pro ERT TIME SIMTSX22 EFBs from the EX family EFBs from the MVB family EFBs from the ULEX family NOTE These DFBs created in Unity Pro have all the Concept parameters but no programmatic content An error message is displayed that says that the programmatic content for these DFBs must still be created The data structures DPM TIME and ERT 10 TTAG from the time stamp module 140 ERT 854 10 have been changed The MS element was broken up into MS LSB
55. ST r 26 c 68 E1194 oarameter IN1 has to be assigned 82 33002515 07 2012 Language Differences Solution To solve this problem create a variable of the pin s type and initialize it with the original values Connect this constant to the appropriate pin of each DFB instance Example 1194 parameter IM1 has to be assigned 1134 parameter TH2 has to be assigned E 33002515 07 2012 83 Language Differences Macros Macros Replaced by Dummy DFBs Macros name starting with are refused by the converter because Unity does not implement macros However if you try to import an application containing macros they will be replaced by dummy DFBs as indicated by the character in the application name While analyzing the project you will get error messages regarding these dummy DFBs To correct these errors simply remove all of the DFBs that were created as a replacements for macros AXx EPARx Parameters AXx and EPARx parameters in Concept s extensible motion blocks are automatically invoked with the newly required array instead of with Unity s formerly present extensible pins Constants present at the Concept pins are also placed as initialization values to such arrays However variables and links must be attached manually with move blocks to these arrays 84 33002515 07 2012 Possible application behavior change 4 Overview This chapter contains information about poss
56. TEREG Parameter description REQ NODEADDR ROUTPATH SLAVEREG NO REG REG WRIT A rising edge triggers the write transaction The parameter can be entered as an address located variable unlocated variable or literal Identifies the node address within the target segment The parameter can be entered as an address located variable unlocated variable or literal Identifies the routing path to the target segment The two digit information units run from 01 64 see Mode of Functioning page 191 If the slave resides in the local network segment ROUTPATH must be set to 0 or must be left unconnected The parameter can be entered as an address located variable unlocated variable or literal Start of the destination area in the addressed slave to which the source data is written The destination area always resides within the 4x register area SLAVEREG expects the destination address as an offset within the 4x area The leading 4 must be omitted e g 59 contents of the variables or value of the literal 40059 The parameter can be entered as an address located variable unlocated variable or literal Number of registers to be written to slave processor 1 100 The parameter can be entered as an address located variable unlocated variable or literal An ANY ARRAY WORD thatis the same size as the planned transmission must be agreed upon 2 No REG for this parameter The name of this arr
57. UDINT LOW WAUL WORD HIGH WAUH WORD looks like this after conversion WAUD UDINT FBI ST1 75 33 LOW WAUL WORD HIGH WAUH WORD 5 75 33isthe instance name of the provided DFB wrapper However the call is still invalid for the analyzer because the converter cannot yet do multi object syntax corrections in ST Will be present in V2 0 You must correct this manually to FBI ST1 75 33 LOW WAUL WORD HIGH WAUH WORD OUT gt WAUD 33002515 07 2012 53 Language Differences EFB Replaced by Function DFB Wrapping Some standard Concept EFBs are implemented in Unity as functions In such cases a wrapping DFB is provided so that the original interface of the Concept EFB remains valid 54 33002515 07 2012 Language Differences FFBs Not Available For All Platforms Overview The FFBs functions function blocks listed below can only be used on Quantum platforms except SFC R ESTORE see table below If Modicon M340 is the target platform these FFBs appear marked in red and indicated as type error FFBs Not Available Communication library Family FFB Platform Extended CREAD REG CWRITE REG MBP MSTR READ REG WRITE REG MODBUSP ADDR SYMAX ADDR ADDR Quantum only 33002515 07 2012 55 Language Diffe
58. abbrechen ESET CONV BOOL F rderer synchronisieren 7 2 line introduction STR has been omitted P GVS RESET CONV SECT CTRL INIT FALSE 0 EXP FALSE RET RUE READONLY FALSE MAS FALSE TEXT P SEC RESET CONV SECTK F SECTION LANG ST SVB FALSE ID 7 EXEC 26 TEXT ST aanaHr0n ST VAR CP ST RESET CONV TP Impuls Reset Conveyor The same name has been used as a structure component name a section name with its control variable and for a TP timer instance Change the type of the instance in the Data editor to TP Substitute Procedures in ST IL Some EFBs from Concept are implemented as procedures in Unity Pro without instance names Open the Conversion Settings tab via Tools Options in Unity Pro to enable disable the Substitute Procedures in ST IL check box before converting e When this checkbox is enabled the instance name of the Concept call will be replaced with the type name e When this checkbox is not enabled a DFB will be created which will then access the procedure 212 33002515 07 2012 FAQ Build Errors Parameter xxxx Has to Be Assigned Cause For inputs left open pins at blocks get an automatically generated variable with the approriate type For outputs this is not done yet In the case of generic data types it cannot be done easily Solution In these cases the user still must declare appropriate variables an
59. ance EN BYTE variable IN BYTE TO BIT DFB ENO BOOL variablel EN lt BOOL variable2 EN BOOL variable3 BIT2 2 BOOL variable4 BIT3 BOOL variable5 oN BIT4 d BOOL variable6 BITs I 2 BOOL_ variable BIT6 I 5 BOOL variable8 BIT7 Representation in IL Representation I CAL BYTE TO BIT DFB Instance IN BYTE variable BITO gt BOOL variablel BIT2 gt BOOL_variable3 BIT4 gt BOOL variable5 BIT6 gt BOOL variable BIT1 gt BOOL variable2 BIT3 gt BOOL variable4 BIT5 gt BOOL variable6 BIT7 gt BOOL variables 114 33002515 07 2012 BYTE TO BIT DFB Representation in ST Representation BYTE TO BIT DFB Instance IN BYTE variable BITO gt BOOL variablel BIT1 gt BOOL variable2 BIT2 gt BOOL variable3 BIT3 gt BOOL variable4 BIT4 gt BOOL variable5 BIT5 gt BOOL variable6 BIT6 gt BOOL variable7 BIT7 gt BOOL variables Parameter description Description of the input parameters Parameter Data type Meaning IN BYTE Input Description of the output parameters Parameter Data type Meaning BITO BOOL Output bit 0 BIT1 BOOL Output bit 1 BIT7 BOOL Output bit 7 33002515 07 2012 115 BYTE TO BIT DFB 116 33002515 07 2012 CREADREG Continuous register reading 8 Introduc
60. and MS MSB For more information about this see State RAM Assignment Using Derived Data Types page 25 Outputs which describe data structures must be assigned event variables using the gt assignment operator within the parameter brackets in the ST and IL languages This happens automatically during conversion from Unity 2 0 onwards The functionality remains the same but the section of the program looks a little different EFBs that Use Time Functions Converted EFBs In Unity Pro function components using Time functions Timer Diagnostic Control Components remain in RUN mode even if the SPS is set to STOP mode CAUTION UNEXPECTED BEHAVIOR OF THE CONTROL Function components using Time functions behave differently in Unity Pro and Concept You must take these different behaviors into consideration during the conversion of Concept applications Failure to follow these instructions can result in injury or equipment damage During conversion Unity Pro standardizes the EFB offer by grouping redundant EFBs The respective EFBs are automatically converted and the project adjusted accordingly 33002515 07 2012 33 Requirements Renamed EFBs The following diagnostics EFBs are renamed when converting Concept to Unity Pro Concept Unity Pro XACT D ACT XREA DIA D REA XLOCK D LOCK XGRP DIA D_GRP XDYN_DIA D_DYN XPRE_DIA D_PRE The Quantum configuration EFB fo
61. ariable unlocated variable or literal Error code see Modbus Plus Error Codes page 123 The parameter can be specified as an address located variable or unlocated variable AnANY ARRAY WORD thatis the same size as the requested transmission must be agreed upon 2 No REG for this parameter The name of this array is defined as a parameter If the array is defined too small then only the amount of data is transmitted that is present in the array The parameter must be defined as a located variable 122 33002515 07 2012 CREADREG Modbus Plus Error Codes Form of the function error code The form of the function error code for Modbus Plus is Mmss which includes e Mis the high code e mis the low code e ss is a subcode Hexadecimal error code Hexadecimal error code for Modbus Plus Hex Error Meaning Code 1001 Abort by user 2001 An operation type that is not supported was specified in the control block 2002 One or more control block parameters were modified while the MSTR element was active this only applies to operations which require several cycles for completion Control block parameters my only be modified in inactive MSTR components 2003 Illegal value in the length field of the control block 2004 Illegal value in the offset field of the control block 2005 Illegal value in the length and offset fields of the control block 2006 Unauthorized d
62. ata field on slave 2007 Unauthorized network field on slave 2008 Unauthorized network routing path on slave 2009 Routing path equivalent to own address 200A Attempting to retrieve more global data words than available 30ss Unusual response by Modbus slave see page 124 4001 Inconsistent response by Modbus slave 5001 Inconsistent response by network 6mss Routing path error see page 124 Subfield m shows where the error occurred a O value means local node 2 means 2nd device in route etc 33002515 07 2012 123 CREADREG ss hexadecimal value in 30ss error code ss hexadecimal value in 30ss error code ss hex Value Meaning 01 Slave does not support requested operation 02 Non existent slave registers were requested 03 An unauthorized data value was requested 05 Slave has accepted a lengthy program command 06 Function cannot currently be carried out lengthy command running 07 Slave has rejected lengthy program command ss hexadecimal value in 6mss error code NOTE Subfield m in error code 6mss is an Index in the routing information that shows where an error has been detected a 0 value indicates the local node 2 means the second device in the route etc The ss subfield in error code 6mss is as follows ss hexadecimal value Meaning 01 No response receipt 02 Access to program denied 03 Node out of service and unable to communicate 04
63. ay is defined as a parameter If the array is defined too small then only the amount of data is transmitted that is present in the array The parameter must be defined as a located variable 192 33002515 07 2012 WRITEREG DONE Transition to ON state for one program scan signifies data have been transferred The parameter can be entered as an address located variable or unlocated variable ERROR Transition to ON state for one program cycle signifies detection of a new error The parameter can be specified as an address located variable or unlocated variable STATUS Error code see Modbus Plus Error Codes page 123 The parameter can be specified as an address located variable or unlocated variable 33002515 07 2012 193 WRITEREG 194 33002515 07 2012 Appendices 33002515 07 2012 195 196 33002515 07 2012 FAQ Build Errors Overview This chapter includes information on build errors What Is in This Chapter This chapter contains the following topics Topic Page General 198 Object Link Creation Error 199 Object Must be Connected to a Successor 200 Link Together with Variable isn t Allowed 201 Data Type xxxx Expected 202 Empty DFB to Replace Obsolete EFB 207 Undefined Symbol xxxx 208 Call of Non Function Block 210 Parameter xxxx Has to Be Assigned 213 Is Not a Parameter of yyyy 2
64. been changed from type WORD to an array of located words Explanation Unity Comm EFBs no longer accept a single WORD address for the communication field because more than one WORD is written So the converter introduces an artificial array shown in the conversion report that can be reached from the project tree through the appropriate hyperlink For var WORD1 type ARRAY 0 0 OF WORD generated The array has a single word size because the converter can not determine its size The user therefore needs to manually configure the correct array size 60 33002515 07 2012 Language Differences ANY ARRAY WORD Parameters Error Message For EF EFB pins that have the type WORD in Concept and have been changed to ANY ARRAY WORD in Unity Cannot import variables will be the reported type Such pins usually have a single register address as a formal parameter in Concept but it is actually used to point to an array of words for which the size has not been explicitly declared Change of Parameter Type In Unity an array of words has to be declared for this purpose This is why the converter changes the type to ARRAY 0 0 OF WORD However the converter cannot determine the required size because a size declaration is absent in the Concept application Therefore the converter defines one data element 0 0 as a replacement for the original variable It is up to the user to replace this default range of one element with the num
65. ber of elements required by the application Redefine Back to a One Dimensional WORD Array In case the application defined data structures that are mapped to registers that describe the data to be worked with significant work to redefine this back to a one dimensional WORD array is required However this is necessary for Unity V1 0 for example Echanges CR2 MAST r 42 c 7 E1092 data types do not match CREADREG REG READ ANY ARRAY WORD lt gt table rec cr2 peer Table Example Lecture depuis API CRZ defaut rec cr CREADREG NODEADDR STATUS table rec cr2 N The Unity converter V2 0 will change these EFB parameter types to ANY avoiding this problem 33002515 07 2012 61 Language Differences Unique Naming required Unique name In Concept applications section names can have the same name as a DDT That is not the case in Unity The converter checks section names to see if they are redundant of DDT names If So the converter appends Sect to the section name 62 33002515 07 2012 Language Differences Incomplete LD Generation LD Generation Not Done Completely In some cases LD generation cannot be completed This can happen when the algorithm allows an object that requires the same position as an existing object In these cases the pre existing object is overwritten Messages are
66. bit 4 of the corresponding status word A PanelMate on RIO is located on slot 1 in module rack 1 of the I O station and can be monitored at bit 1 of the first status word for the I O station NOTE The ASCII keyboard communication status can be monitored with the error numbers in the ASCII read write instructions 33002515 07 2012 157 PLCSTAT DIO status DIO STAT General information NOTE The information corresponds to status table words 172 to 277 in the PLC status dialog The words contain the communication status DIO status Words 1 to 10 are global status words Of the remaining 96 words three words are allocated to each of the up to 32 I O stations wordl saves the switch on error numbers This word is always 0 when the system is running If an error occurs the PLC does not start but generates a PLC stop status word5 from PLC STAT The conditions are true when the bits are set to 1 Switch on error numbers DIOSTATE wordl The conditions are true when the bits are set to 1 Switch on error numbers Code Error Meaning location of error 01 BADTCLEN Traffic cop length 02 BADLNKNUM RIO link number 03 BADNUMDPS 1 O station number in traffic cop 04 BADTCSUM Traffic cop checksum 10 BADDDLEN I O station descriptor length 11 BADDRPNUM I O station number 12 BADHUPTIM I O station stop time 13 BADASCNUM ASCII port number 14
67. block MAST dg 4 r E1063 call of non function The function names remain marked as erroneous after conversion because the functions are converted with the procedure syntax in ST not with the needed function syntax as the corrected version shows Also the converter has dropped the indices for the result variable of GET BIT e Original Concept Codes After Conversion Corrected Version VAR INPUT END FOR FOR INPUT IN I NO INPUT END FO END FO WORD GET BIT R BASE 1 TO 20 DO POINT 1 TO 16 DO WORD O SCAN IN WORD I BASE POINT _BASE I_POINT INPUT WORD RES R R FOR I_BASE 1 TO 20 DO FOR I POINT 1 TO 16 DO GET BIT IN IO SCAN IN WORD I BASE NO I POINT RES INPUT 7 END_FOR FOR I BASE 1 TO 20 DO FOR I POINT 1 TO 16 DO INPUT I BASE I POINT GET BIT IN IO SCAN IN WORD I BASE NO I POINT END FOR END FOR 210 33002515 07 2012 FAQ Build Errors Original Concept Codes After Conversion Corrected Version VAR OUTPUT WORD SET BITX END VAR FOR O BASE 1 TO 20 DO FOR O POINT 1 TO 16 DO OUTPUT WORD RES IO SCAN OUT WORD O BASE IN OUTPUT O BASE O POINT NO O POINT END FOR END FOR 1 TO 20 DO 1 TO 16 DO FOR O BASE FOR O POINT SET BIT RES IO SCAN OUT WORD O BASE IN OUTPUT O BASE O POINT N
68. cept projects with IEC conforming sections FBD LD SFC IL ST Unity Pro offers this option in which a logic is recreated in accordance with LL984 This logic must be entered manually however Example of a section processing order in Unity Pro Section n 2 Section n 1 RIO call u v w Section n Section n 1 RIO call utl w x Section nt2 RIO call u42 x y RIO x y z is the explicit I O call here e Write the outputs to the station x e Wait at the inputs of the I O station y e Prepare the inputs of the I O station 2 NOTE Take these new settings into consideration when structuring your project Setting Variables Cyclically Unlocated variables cannot be set cyclically in Unity Pro It is possible in Concept If you need to set variables cyclically in your project you should use located variables Mx 1x registers EBOOL can be forced MWx IWx registers can be set cyclically only numerical values 30 33002515 07 2012 Requirements EFBs General The following options are available for converting Concept EFBs to Unity Pro e The EFBs are also supported in Unity Pro they are mapped on a one to one basis e The EFBs are no longer supported in Unity Pro Instead of EFBs appropriate DFBs are placed in the application The functionality remains unaffected by this e The EFBs are no longer supported by Unity Pro Instead of EFBs DFBs with no programmatic content are placed in the
69. components always refer to the hardware actually connected Therefore the correct functioning of this function block on the simulators cannot be guaranteed The function block sets the hardware system clock if the corresponding registers are provided within this configuration If these registers are not present the TOD CNF output is set to 0 The function block reads the input values on the S_PULSE input at a rising edge and transfers them to the hardware clock For all input values e If the value exceeds the specified maximum value the maximum is used e If the value falls below the specified minimum value the minimum is used EN and ENO can be configured as additional parameters 33002515 07 2012 177 SET TOD Representation in FBD Representation SET TOD Instance InputAcceptedFlag DayOfWeek BYTE variable2 BYTE variable3 BYTE variable4 BYTE variable5 BYTE _variable 6 BYTE variable SET_TOD S PULSE D WEEK MONTH DAY YEAR HOUR MINUTE SECOND TOD CNF ClockReady Representation in LD Representation SET TOD Instance InputAcceptedFlag SET TOD EN DayOfW eek BYTE variable2 BYTE variable3 BYTE variable4 BYTE variable5 BYTE variable6 BYTE variable7 S PULSE D WEEK MONTH DAY YEAR HOUR MINUTE SECOND ENO TOD CNF ClockReady CAS qe
70. d attach them to the left open pins 33002515 07 2012 213 FAQ Build Errors XxXxX Is Not a Parameter of yyyy Cause The diagnostic EFBs which have been extensible in Concept do not get the right calling syntax in IL IPR 19689 9 TIME MAST 43 c 17 E1031 INI is not a parameter of function block GRP DIA 9 9 TIME MAST r 44 c 17 E1031 IN2 is not a parameter of function block GRP DIA 9 Solution In the case of the in Concept extensible diagnostic EFBs the extension can be done with a logical AND function the output of which is tied to the single input of the diagnostic function This is done with the first three lines in the correction The used output must be processed by BOOL TO TIME which is bypassed in the automatic conversion and which is corrected in the last three lines Example Original Concept Code After Conversion Corrected Version CAL GRP DIA 9 ED CAL GRP DIA 9 ED LD DUMMY 1 94 DUMMY 1 91 DUMMY 1 91 AND DUMMY 1 96 DTIME IN92 DTIME IN92 ST GRP DIA 9 IN DUMMY 1 94 DUMMY 1 94 CAL GRP DIA 9 ED IN2 DUMMY 1 96 IN2 DUMMY 1 96 DUMMY 1 91 LD GRP DIA 9 ERR ERR gt OUT90 DTIME IN92 BOOL TO TIME BOOL TO TIME LD GRP DIA 9 ERR ST OUT90 BOOL TO TIME ST OUT90 214 33002515 07 2012 FAQ Build Errors DDT Component Is Missing Cause Keywords may not be used as symbols of DDT component
71. d on the network The network load must therefore be carefully monitored If the network load is too high the program logic should be reorganized to work with the READREG function block which is a variant of this function block that does not operate in continuous mode but is command driven 33002515 07 2012 121 CREADREG Parameter description NODEADDR ROUTPATH SLAVEREG NO REG STATUS REG READ Identifies the node address within the target segment The parameter can be entered as an address located variable unlocated variable or literal Identifies the routing path to the target segment The two digit information units run from 01 64 see Mode of Functioning page 121 If the slave resides in the local network segment ROUTPATH must be set to 0 or must be left unconnected The parameter can be entered as an address located variable unlocated variable or literal Start of the area in the addressed slave from which the source data are read The Source area always resides within the 4x register area SLAVEREG expects the Source reference as offset within the 4x area The leading 4 must be omitted e g 59 contents of the variables or value of the literal 40059 The parameter can be entered as an address located variable unlocated variable or literal Number of registers to be read from slave processor 1 100 The parameter can be entered as an address located v
72. dialog The words show the module function status Five words are reserved for each of the maximum 32 I O stations Each word corresponds to one of maximal 2 possible module racks in each I O station Function display for Quantum hardware Each of the module racks for Quantum hardware can contain up to 15 I O modules except for the first rack which contains a maximum 14 I O modules Bit 1 16 in each word show the corresponding l O module function display in the racks module function status 11 12 13 14 16 Bit allocation 1 2 3 45 Bit Allocation 1 Slot 1 2 Slot 2 16 Slot 16 156 33002515 07 2012 PLCSTAT Conditions for a correct function display Four conditions must be fulfilled if an I O module can give a correct function display e The data traffic of the slot has to be monitored e The slot must be valid for the inserted module e Valid communication must be established between the module and the RIO interface at RIO stations e Valid communication must be established between the processor in the PLC and the RIO interface at the RIO station Status words for the MMI user controllers The status of the 32 element button controllers and PanelMate units in a RIO network can also be monitored with an I O function status word The button controllers are located on slot 4 in a I O rack and can be monitored at
73. dware clock Time Of Day 135 13 LIMIT IND DFB Limit with indicator 139 14 LOOKUP 1 DFB Traverse progression with 1st 143 degree interpolation 15 PLCSTAT PLC function status 149 16 READREG Read register 165 17 RIOSTAT Module function status RIO 173 18 SET TOD Setting the hardware clock Time Of Day 177 19 WORD AS BYTE DFB Type conversion 181 20 WORD TO BIT DFB Type conversion 183 21 WRITEREG Write register 187 33002515 07 2012 111 Blocks from Concept to Unity Pro 112 33002515 07 2012 BYTE TO BIT DFB Type conversion 7 Description Function description This derived function block converts one input word from the BYTE data type to 8 output values of the BOOL data type The individual bits of the byte at the input are assigned to the outputs according to the output names BITO 2 1 BYTE BIT 2 BITS 28 y 27 EN and ENO can be configured as additional parameters Representation in FBD Representation BYTE TO BIT DFB Instance BYTE TO BIT DFB BYTE variable IN BOOL variablel BOOL variable2 BIT2 BOOL variable3 BIT3 BOOL variable4 BOOL variable5 BITS BOOL variable6 BIT6 BOOL variable7 BIT BOOL variables 33002515 07 2012 113 BYTE TO BIT DFB Representation in LD Representation BYTE TO BIT DFB Inst
74. e result because the first ADD 1NT integrator block is executed after it Solution Replace the connection via a variable by a link to achieve the same result as in Concept 33002515 07 2012 67 Language Differences Constants Losing the Read Only Behavior Constants are not accepted as private DFB variables Therefore they are converted to initialized variables in DFBs in this way losing the read only behavior 68 33002515 07 2012 Language Differences Indices in ST and IL High Resolution In addition to INT now DINT will be allowed as array index type in all areas of Unity Pro but with limited value ranges For DINT the index may only contain INT values 32768 32767 33002515 07 2012 69 Language Differences Calculate with TIME and REAL Manual Correction When TIME and EAL variables are multiplied in ST Ri inserted into the REAL variable manually EAL TO DINT must be 70 33002515 07 2012 Language Differences WORD Assignments to BOOL Arrays Manual Correction Assignments of HEX WORDS to complete Bool arrays sent to Word registers are possible in Concept but not in Unity A manual correction must be done for example AR2 BOOL 0 BOOL 1640100 DINT gt AR2 BYTE 0 BYTE 16455AA DINT gt AR2 BYTE 0 BYTE lt gt 16 AA55 DINT gt Solution The ST code must be changed to single compone
75. e variable4 HOUR gt Byte variable5 MINUTE gt Byte variable6 SECOND gt Byte variable T 136 33002515 07 2012 TOD Parameter description Description of the output parameters Parameters Data type Meaning TOD CNF BOOL 1 4x register for hardware system clock was found and the clock is operational 0 time is set at the moment In this case the other outputs keep their values D WEEK BYTE Weekday 1 Sunday 7 Saturday MONTH BYTE Month 1 12 DAY BYTE Day 1 31 YEAR BYTE Year 0 99 HOUR BYTE Hour 0 23 MINUTE BYTE Minute 0 59 SECOND BYTE Second 0 59 33002515 07 2012 137 GET TOD 138 33002515 07 2012 LIMIT IND DFB Limit with indicator 1 3 Description Function description Formula This derived function block transfers the unchanged input value Input to the Output ifthe input value is not less than the minimum value LimitMinimum and does not exceed the maximum value LimitMaximum If the input value Input is less than the minimum value LimitMinimum the minimum value will be transferred to the output If the input value Input exceeds the maximum value LimitMaximum the maximum value will be transferred to the output Additionally a indication is given if the minimum or maximum value is violated If the value at the Input input is less than the value at the LimitMi
76. ed in connection with INOUT pins Example FBI 37 1 COMP_PID A03 24 PIC 05 SP SP ERR A03 24 05 PV STATUS SP CAS A03 24 PIC 05 MODE A03 24 PIC 05 PARA SP CAS N YMAN YMAN YRESET OFF FEED FWD OFF A03_24_PIC_05_UT Y Y 37 2 E F MOVE A03_24_PIC_05_MA EN ENO A IN OUT L A03 24 PIC 05 UT Solution Delete the link and insert the variable to the destination parameter of the link 33002515 07 2012 201 FAQ Build Errors Data Type xxxx Expected Example 115 4 MOVE LIT_6X30A_PV JIN OUT MW100 Solution Replace used data types according to the required type The following picture shows the error correction for the 115 1 function block where the type of output MW100 has been modified to the type used for the input REAL Function Blocks DFB Types Variables DDT Types _ Filter T Name mwi 0 v EDT 22 Name Type MW100 REAL MW106 WORD 4 irl boucle controle MAST El 115 1 m MOVE LIT 6 30 PV IN OUT MW100 115 2 2 MOVE a LIT 6 30 PV IN OUT MW106 y gt Elm The Concept converter of V1 0 estimates the type from the address and does not take the actual type into account This is subject to a later version 33002515 07 2012 202 FAQ Build Errors
77. ences 19 hardware platforms supported 19 importing DDTs 106 macros 51 108 projects 13 105 initialization values array 109 cluster 109 LL SRAMxxx 109 Instruction List differences 47 instructions differences 31 L Ladder Diagram differences 36 Ladder Logic differences 49 language objects 51 differences 22 LIMIT IND DFB 739 LL SRAMxxx array 109 initialization values 109 LOOKUP 1 DFB 143 O object types differences 51 P PLCSTAT 149 preconditions 17 program execution differences 22 R READREG 165 requirements 17 RIOSTAT 173 S Sequential Function Chart differences 35 SET TOD 177 Structured Text differences 47 System objects differences 22 220 33002515 07 2012 Index WORD AS BYTE DFB 181 WORD TO BIT DFB 183 WRITEREG 187 33002515 07 2012 221 Index 222 33002515 07 2012
78. ept that you want to convert to Unity Pro NOTE If you require non buffered behavior define the warm restart event with the SYSSTATE function block and explicitly copy the value O zero to the Mx register 28 33002515 07 2012 Requirements Forced Outputs A WARNING UNEXPECTED SYSTEM BEHAVIOR Do not relay on the Memory Protect switch The behavior of forced outputs 96M between Modsoft Proworx Concept and Unity Pro has changed e With Modsoft ProWORX Concept you cannot force outputs when the Memory Protect switch of the Quantum CPU is set to the On position e With Unity Pro you can force outputs even when the Memory Protect switch of the Quantum CPU is set to the On position Failure to follow these instructions can result in death serious injury or equipment damage 44 WARNING UNEXPECTED SYSTEM BEHAVIOR Reforce the outputs following a cold start The behavior of forced outputs M between Modsoft Proworx Concept and Unity Pro has changed e With Modsoft ProWORX Concept forced outputs maintain their values following a cold start e With Unity Pro forced outputs lose their values following a cold start Failure to follow these instructions can result in death serious injury or equipment damage 33002515 07 2012 29 Requirements Quantum Remote I O Control In Concept only LL984 sections can be assigned l O stations Drops This is not possible in Con
79. equirements The derived data types are stored in the state RAM when using Concept PAR2 PAR1 Y Y Word 1 21 212 211 20 29 28 27 126 25 124 23 52 21 20 PARA LSB PARS Y Y Word 2 215 214 213 212 911 210 29 28 27 26 25 24 23 22 21 20 5 PARA MSB y Y Word 3 215 214 213 212 211 210 29 98 27 26 25 24 23 22 21 20 PARO MSB PARE LSB Y Y Word 4 215 214 213 212 911 21029 28 27 26 25 24 23 22 B 20 The same derived data types are stored in the state RAM when using Unity Pro PAR2 PAR1 y y Word 1 215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 PARS y Word 2 215 212 211 210 29 28 27 26 25 24 23 22 21 20 PARA y 214 219 212 911 910 29 28 27 26 25 24 23 22 21 20 Word 3 21 PAR5 Y Word 4 215 214 21 212 211 210 29 28 27 26 25 24 23 22 21 20 PAR6 y Word 5 215 214 213 212 211 210 29 zs 27 26 25 24 23 22 21 20 26 33002515 07 2012 Requirements Timer Date Battery Monitoring Timer address date time of day and the battery monitoring can
80. er Unity Pro Software Reference Manual Unity Pro Software Operating Modes Manual You can download these technical publications and other technical information from our website at www schneider electric com User Comments We welcome your comments about this document You can reach us by e mail at techcomm O schneider electric com 33002515 07 2012 9 10 33002515 07 2012 Requirements and conversion Overview This section contains requirements and information about the conversion What Is in This Part This part contains the following chapters Chapter Chapter Name Page 1 General Description of the Unity Pro Concept Converter 13 2 Requirements 17 3 Language Differences 51 4 Possible application behavior change 85 5 The Conversion Process 101 6 Conversion Procedure 103 33002515 07 2012 11 Requirements and conversion 12 33002515 07 2012 General Description of the Unity Pro Concept Converter 1 Overview This chapter contains a general description of the Unity Pro Concept Converter What Is in This Chapter This chapter contains the following topics Topic Page General Description 14 Conversion with the Conversion Wizard 15 33002515 07 2012 General Description General Description Brief description Conversion The Concept Converter is an integrated function in Unity Pro which
81. er area SLAVEREG expects the Source reference as offset within the 4x area The leading 4 must be omitted e g 59 contents of the variables or value of the literal 40059 The parameter can be specified as an address located variable unlocated variable or literal Number of registers to be read from slave processor 1 100 The parameter can be specified as an address located variable unlocated variable or literal Transition to ON state for one program cycle signifies receipt of new data ready to be processed The parameter can be specified as an address located variable or unlocated variable 170 33002515 07 2012 READREG ERROR STATUS REG READ Transition to ON state for one program cycle signifies detection of a new error The parameter can be specified as an address located variable or unlocated variable Error code see Modbus Plus Error Codes page 123 The parameter can be specified as an address located variable or unlocated variable ANY ARRAY WORD that is the same size as the requested transmission must be agreed upon 2 NO RI EG for this parameter The name of this array is defined as a parameter If the array is defined too small then only the amount of data is transmitted that is pre sent in the array The parameter must be defined as a located variable 33002515 07 2012 171 READREG 172 33002515 07 2012 RIOSTAT Modu
82. erator interface function or the programming testing and monitoring functions defined in IEC 61131 1 Modification within the function block of a variable declared in a VAR IN OUT block is permitted EN and ENO in Function Blocks For function blocks also an additional Boolean EN Enable input or ENO Enable Out output or both can be provided by the manufacturer or user according to the declarations When these variables are used the execution of the operations defined by the function block shall be controlled according to the following rules 1 If the value of EN is FALSE 0 when the function block instance is invoked the assignments of actual values to the function block inputs may or may not be made in an implementation dependent fashion the operations defined by the function block body shall not be executed and the value of ENO shall be reset to FALSE 0 by the programmable controller system Otherwise the value of ENO shall be set to TRUE 1 by the programmable controller system the assignments of actual values to the function block inputs shall be made and the operations defined by the function block body shall be executed These operations can include the assignment of a Boolean value to ENO If the ENO output is evaluated to FALSE 0 the values of the function block outputs VAR OUTPUT keep their states from the previous invocation 90 33002515 07 2012
83. es are applied in the given order e The values of the previous invocation are used e f no previous invocation the initial values are used 33002515 07 2012 93 Possible application behavior change Consequences Potential Problems A WARNING UNEXPECTED APPLICATION BEHAVIOR Take care when an application is migrating from Concept to Unity Failure to follow these instructions can result in death serious injury or equipment damage NOTE Because of this architectural change when an application is migrated from Concept to Unity you have to evaluate the consequences of the migration and specially in the following cases e Multi assignment of connected output variables In Concept there are function blocks mainly in the closed loop control area which do not write their output values to the connected variables in special operating modes manual mode In these special modes it was possible to write the variables from other locations inside the application This will work in Unity only if the variables are written after the function block call If they are written before the function block call the copy process from the instance data to the connected variables will overwrite this value with the old value from the instance data e Controlling output variables by animation table or HMI If a block doesn t write his outputs in special operating modes like manual mode see above it was possible to modify t
84. ess SLAVEREG NumberOfRegisters REG AmrayForValuesRead REG READ REG READ ArrayForValuesRead 118 33002515 07 2012 CREADREG Representation in LD Representation CREADREG Instance CREADREG EN ENO DeviceAddress NODEADDR STATUS ErrorCode RoutingPath ROUTPATH OffsetAddress SLAVEREG NumberOfRegisters NO_REG ArrayForValuesRead READ REG_READ ArrayForValuesRead Representation in IL Representation CAL CREADREG Instance NODEADDR DeviceAddress ROUTPATH RoutingPath SLAVEREG OffsetAddress NO REG NumberOfRegisters REG READ ArrayForValuesRead STATUS gt ErrorCode Representation in ST Representation CREADREG Instance NODEADDR DeviceAddress ROUTPATH RoutingPath SLAVEREG OffsetAddress NO REG NumberOfRegisters REG READ ArrayForValuesRead STATUS gt ErrorCode 33002515 07 2012 119 CREADREG Parameter description Description of the input parameters Parameters Data type Meaning NODEADDR INT Device address within the target segment ROUTPATH DINT Routing path to target segment SLAVEREG DINT Offset address of the first 4x register in the slave to be read from NO REG INT Number of registers to be read from slave Description of i
85. function block only supports the local Modbus Plus interface no NOM If using a NOM please work with the WRITE REG block from the communication block library NOTE This derived function block also does not support TCP IP or SY MAX Ethernet If TCP IP or SY MAX Ethernet is needed please use the WRITE REG block from the communication block library NOTE Several copies of this function block can be used in the program However multiple instancing of these copies is not possible Representation in FBD Representation WRITEREG Instance WRITEREG StartWriteOnce REQ DONE SetAfterWritingData DeviceAddress NODEADDR ERROR SetInCaseOfError RoutingPath ROUTPATH STATUS ErrorCode OffsetAddress SLAVEREG NumberOfRegisters NO REG SourceDataArea WRIT REG WRIT SourceDataArea 188 33002515 07 2012 WRITEREG Representation in LD Representation WRITEREG Instance WRITEREG EN ENO igit Delete WritingData REQ DONE SetInCaseOfError DeviceAddress NODEADDR ERROR RoutingPath ROUTPATH STATUS ErrorCode OffsetAddress J SLAVEREG NumberOfRegisters NO_REG SourceDataArea REG WRIT REG WRIT SourceDataArea Representation in IL Representation C
86. ge Differences Unity Solution The output of the disabled SEL EF gets an undefined value in this case 0 Therefore the output of EQ INT function block has become true If the EN of the SEL is set to false the ENO of the INT is also set to false but the connected output variable keeps its value from the previous cycle A variable is mandatory ta be used to retain the network results in the case an EF will he disabled NOTE The use of a variable is mandatory to retain network results in case an EF becomes disabled 76 33002515 07 2012 Language Differences Variables at Empty Pins Introduction In Unity Pro it is necessary to fill provided inputs and outputs for derived data types or I O parameters this is not necessary in Concept If these types are not generic the converter will fill these initially empty inputs and outputs with variables created by the converter Conversion Settings Open the Conversion Settings tab via Tools Options in Unity Pro to enable disable the Variables at empty pins check box before converting e When this checkbox is enabled empty link points will be filled with variables created by the converter e When this checkbox is not enabled empty link points will not be filled with variables created by the converter 33002515 07 2012 77 Language Differences SFC Section Retains its State When Performing an Online Modification Online Modifications
87. hanged by the user only new ones can be introduced 33002515 07 2012 87 Possible application behavior change Concept Behavior Parameters are Handled by Reference In Concept all function block parameters are handled by reference means the blocks receives a pointer to the data of every function block pin and works directly on the connected variable Connected variables Connected input variable Connected output variable N Instance data EFB Code Function Block Code Therefore in Concept it is up to the function block code to decide whether e to behave IEC compliant or e to write input data or e to read output data or e notto write output data 88 33002515 07 2012 Possible application behavior change IEC Demands Function Block For the purposes of programmable controller programming languages a function block is a program organization unit which when executed yields one or more values Multiple named instances copies of a function block can be created Each instance shall have an associated identifier the instance name and a data structure containing its output and internal variables and depending on the implementation values of or references to its input variables Allthe values of the output variables and the necessary internal variables of this data structure shall persist from one execution of the function block to the
88. he connected output variables by animation tables or HMI This will no longer work in Unity since the copy process from the instance data to the connected variables of the function block will overwrite the modified value with the old value from the instance data Changed EFB Layout To avoid major problems a lot of function blocks mainly in the Motion and CLC area were changed in their layout from Concept to Unity to ensure a correct mode of operation in the intended way for the function blocks The concerned pins were changed from type OUT to IN OUT In nearly all cases the modification meets better the reality since it is read from the concerned output pins and so they are in fact IN OUTs 94 33002515 07 2012 Possible application behavior change The following tables summarize the EFBs where at least one pin was changed from OUT to IN OUT during migration from Concept to Unity Library CONT CTL Family Function Block Concerned Pin Controller PI B OUT PIDFF OUT Output Processing MS OUT Setpoint Management SP SEL SP Library Motion Family Function Block Concerned Pin MMF Start CFG CP F MFB CFG BLK CFG CP V MFB CFG CFG_CS MFB CFG_BLK CFG_FS MFB CFG_BLK CFG_IA MFB CFG_BLK CFG_RA MFB CFG_BLK CFG_SA MFB CFG_BLK DRV_DNLD MFB DRV_UPLD MFB IDN_CHK MFB IDN_XFER MFB MMF_BITS MFB MMF_ESUB MFB MMF_INDX MFB MMF_JOG
89. he function block DIOSTAT see page 133 Representation in FBD Representation PLCSTAT Instance PLCSTAT CopyPLCStatusFlag PLC READ STAT PLC IO Status CopyRIOStatusFlag RIO READ RIO IO Status CopyDIOStatusFlag 010 READ STAT DIO IO Status Representation in LD Representation PLCSTAT Instance PLCSTAT EN ENO CopyPLCStatusFlag PLC READ PLC STAT PLC IO Status CopyRIOStatusFlag RIO READ RIO STAT RIO IO Status CopyDIOStatusFlag DIO READ DIO STAT DIO IO Status 150 33002515 07 2012 PLCSTAT Representation in IL Representation CAL PLCSTAT Instance PLC READ CopyPLCStatusFlag RIO READ CopyRIOStatusFlag DIO READ CopyDIOStatusFlag PLC 5 gt IO Status RIO 5 gt IO Status DIO STAT DIO IO Status Representation in ST Representation PLCSTAT Instance PLC READ CopyPLCStatusFlag RIO READ CopyRIOStatusFlag DIO READ CopyDIOStatusFlag PLC STAT 2PLC IO Status RIO 5 gt IO Status DIO STAT DIO IO Status PLCSTAT parameter description Description of the input parameters Parameters Data type Meaning PLC READ BOOL 1 copies the PLC status from the status table to the output PLC STAT RIO READ BOOL 1 copies the RIO status from the status table to the output RIO STAT DIO READ BOOL
90. he new Hot Standby CPU 671 60 and the Concept Hot Standby Module 140 CHS 111 00 is removed All Hot Standby parameters will be transferred to the Unity application NOTE It is not possible to recover an application from Concept to Unity Pro safety PLC To build a safety system refer to the safety manual NOTE As the CPU in Concept only requires one slot but the new Unity CPU requires two overlaps in the rack my arise These must be resolved manually by the user 33002515 07 2012 21 Requirements System Security Program Execution The access authorizations defined in Concept are not converted to Unity Pro Security under Unity Pro does not refer to the corresponding installation as it does under Concept Program execution using Concept and Unity Pro are different It can lead to different behavior during the first program run after a restart Program execution for Concept 1 Write the outputs program run n 1 2 Read the inputs program run n 3 Program processing Program execution for Unity Pro 1 Read the inputs 2 Program processing 3 Write the outputs Example In Concept you have assigned a 4x register to a digital output and stopped the PLC when the value is true After a restart the value remains True during the first program run even if you have modified the process conditions Specified Execution Order The execution order in the function block language in Concept is determi
91. i inputs can be increased to 30 by modifying the size of the block frame vertically This corresponds to a maximum of 15 support point pairs The number of inputs must be even The x values must be in ascending order Representation in FBD EN and ENO can be configured as additional parameters Representation LOOKUP TABLEI DFB Instance LOOKUP InputVariable Y OutputVariable X Coord 1 SupportPoint XiYil QXHI IndicatorSignalX gt Xm Y Coord 1 SupportPoint XiYi2 QXLO IndicatorSignalX lt X1 Representation in LD Representation LOOKUP TABLE DFB Instance Input Variable X Coord 1 SupportPoint Y 1 SupportPoint LOOKUP EN ENO X Y OutputVariable mo s XiYil QXHI 4 IndicatorSignalX lt X1 XiYi2 144 33002515 07 2012 LOOKUP TABLE1 DFB Representation in IL Representation CAL LOOKUP 1 DFB Instance X InputVariable XiYil X Coord 1 SupportPoint XiYi2 Y Coord 1 SupportPoint Y gt OutputVariable OXHI gt IndicatorSignalX gt Xm OXLO gt IndicatorSignalX lt X1 Representation in ST Representation LOOKUP 1 DFB Instance X InputVariable XiYil X Coord 1 SupportPoint XiYi2 Y Coord 1 SupportPoint Y gt OutputVariable OXHI gt IndicatorSignalX gt Xm OXLO gt IndicatorSignalX lt X1 Parameter desc
92. ibes the RE What Is in This Chapter ADR EG block This chapter contains the following topics Topic Page Description 166 Mode of Functioning 169 Parameter description 170 33002515 07 2012 165 READREG Description Function description With a rising edge at the REO input this function block reads a register area from an addressed slave via Modbus Plus EN and ENO can be configured as additional parameters NOTE When programming a READREG function you must be familiar with the routing procedures used by your network Modbus Plus routing path structures will be described in detail in Modbus Plus Network Planning and Installation Guide NOTE This function block only supports the local Modbus Plus interface no NOM If using a NOM please work with the CREAD R block library EG block from the communication NOTE This function block does not support TCP IP or SY MAX Ethernet If TCP IP or SY MAX Ethernet is needed please use the CREAD REG block from the communication bl ock library NOTE Several copies of this function block can be used in the program However multiple instancing of these copies is not possible Representation in FBD Representation READREG Instance StartReadOnce DeviceAddress RoutingPath OffsetAddress NumberOfRegisters ArrayF orValuesRead READREG
93. ible application behavior change when migrating from Concept to Unity Pro What Is in This Chapter This chapter contains the following topics Topic Page General 86 Concept Behavior 88 IEC Demands 89 Unity Behavior 92 Consequences 94 33002515 07 2012 85 Possible application behavior change General Concept In Concept and Unity Function Block interfaces are implemented with data structures instance areas collecting parameters according to the standard IEC61131 which both systems refer to Function Block invocations refer to those data structures However Concept does not include output parameters into those instance areas All parameters of DFB EFBs Elementary Function Blocks are generally handled by reference therefore output parameters are directly written to by the Function Block code by Concept Unity DFB EFBs buffer output parameters in the instance area as the standard IEC61131 prescribes The Concept behavior was used to enable for example easy manual mode implementation of closed loop control function blocks If the output is written to only once in a cycle the behavior is the same in both systems If output values are not written in all invocation cases but are assigned by several Function Block instances different behavior between both systems can result If the concerned variable is written to by some other control part prior to a Function Block having the same out
94. iels both contain a Zero directly passed through from the Concept application 3 To remove the error message enter 1 into the start field 33002515 07 2012 217 FAQ Build Errors 140 NOG 111 00 Configuration Not Converted Concept The 140 NOG 111 00 is used as a NOM in Concept Configuration Not Converted The conversion creates also a NOM in Unity Pro but the l O configuration gets lost 218 33002515 07 2012 Index 0 9 140 NOG 111 00 configuration not converted 218 A analyzing projects 51 101 application behavior changes 85 build errors 197 BYTE TO BIT DFB 113 conversion wizard 15 Concept Converter instructions BYTE TO BIT DFB 113 CREADREG 117 CWRITREG 125 DINT AS WORD PDFB 131 DIOSTAT 133 GET 135 LIMIT IND DFB 139 LOOKUP TABLE1 DFB 143 PLCSTAT 149 READREG 165 RIOSTAT 173 SET TOD 177 WORD AS BYTE DFB 181 WORD TO BIT DFB 183 WRITEREG 187 configuration differences 20 conversion wizard for Concept 15 converter 11 convertion procedure 103 process 101 CREADREG 117 CWRITREG 125 DINT AS WORD DFB 737 DIOSTAT 133 33002515 07 2012 219 Index E EFBs differences 31 EN not connected 91 error messages 51 85 101 106 exporting DFBs 104 macros 104 projects 13 104 sections 104 F Function Block Diagram differences 50 G GET TOD 135 H hardware correspond
95. ill be converted to topological addressing open the Conversion Settings tab via Tools Options in Unity Pro and activate the Generate Topological Addresses for Quantum check box before converting If the check box is not activated the State RAM register addresses are converted to flat addresses for Quantum only If Compact or Momentum applications are converted with the conversion wizard topological addressing is used by default regardless whether the check box is activated or not State RAM register addresses with assigned modules topological Concept Unity Pro 4x 9eQWt 3x Ox Qt 1x Slt t topological description 24 33002515 07 2012 Requirements The following information is read from the configuration to provide a sufficient topological description of State RAM register addresses with assigned I O modules Bus number corresponds to drop head in Concept Drop Rack Module Channel The complete address reads as follows IQ W lt Busnumber Drop gt Rack Module Channel State RAM Assignment Using Derived Data Types In Concept data structure elements begin at BYTE limits In Unity Pro data structure elements begin at WORD limits Example of a derived data type TYPE SKOE STRUCT PARI BOOL PAR2 BYTE PAR3 BOOL PARA WORD PAR5 BOOL PAR6 WORD END STRUCT END 33002515 07 2012 25 R
96. ing on the opened application save it or export as an XEF file Conversion Wizard Documentation For detailed information on the conversion wizard please refer to the Operating Modes Manual Conversion Wizard 16 33002515 07 2012 Requirements Overview This chapter contains the requirements for converting a Concept project into a Unity Pro project What Is in This Chapter This chapter contains the following topics Topic Page Concept Version 18 Supported Hardware Platforms 19 Configuration 20 System 22 EFBs 31 Programming Language SFC 35 Programming Language LD 36 Programming Language ST IL 47 Programming Language LL984 49 Programming Language FBD 50 33002515 07 2012 17 Requirements Concept Version General Projects from Concept versions 2 11 and 2 5 and 2 6 can be converted to Unity Pro projects Preconversion If an older version of a Concept project should be converted to Unity Pro the project must be first converted within Concept to bring it to version 2 6 status for security reasons 18 33002515 07 2012 Requirements Supported Hardware Platforms General The Concept Converter accepts applications using the following hardware platforms e Quantum e Compact e Momentum Manual Corrections NOTE The Concept Converter converts as far as possible the modules when equivalencies are existing It is mandatory to
97. ismatch cases are reported with a build analyze message and left to be resolved by the user Word Arrays in Communication Blocks Communication blocks have Word arrays as parameters whic are defined in Concept with a reference to the first Word only The size of the array is often given by the content of a variable which is defined during run time So the size cannot be determined by the converter The user must determine the maximum size and declare the array accordingly by himself Example from Concept Step Action 1 MicroScaleConfig MAST Micro Scale Clear Tare 402310 402319 IF MicroScCTActive 0 THEN MicroScCTMSTR1 5 12 MicroScCTMSTR2 0 MicroScCTMSTR3 3 MicroScCTMSTR4 47 MicroScCTMSTR5 1028 MicroScCTMSTR6 1 MicroScCTMSTR7 0 MicroScCTMSTR8 0 MicroScCTMSTR9 0 MieroSeSTMSTRIO_ 62 END IF All array members appear as single variables In Unity they must be combined to an array 2 This is prepared by the converter by declaring a variable with the range of 0 0 33002515 07 2012 205 FAQ Build Errors Step Action 3 This leads to a set of analyze messages to make the user aware of the correction need In this case the correction of the user should look like MicroScaleConfig MAST Micro Scale Clear Tare 402310 402319 IF MicroScCTActive 0 THEN MicroScCTMSTR 1 1 Micr
98. issued to make you aware of this SAFETY INTE RLOCKS PLC3 MAST r 8 c 3 E1189 converter error Overwrite happened when generating LD SAFETY INTE R network see report OCKS_PLC3 MAST r error Details in Conversion Report 83 0 3 E1002 syntax In the conversion report which may be opened after being imported through the hyperlink in the project tree some additional detail about the message is given 09 29 05 953 gt overwritten Error LD Object PTFDTP1_ ENABL ED with type coil The user should compare the conversion result to a printout of the original section and correct the converted section accordingly 33002515 07 2012 63 Language Differences LD Execution Order Changed Different Execution Orders NOTE Unity s LD execution order can differ from Concept s In Unity one LD network can be completed before the next is started The converter follows the Concept execution order in graphical positioning making the original order visible to the user However since Unity calculates the order anew without the possibility of forcing it from the converter there can be execution order discrepancies Generate ConvError Hints Concept Open the Conversion Settings tab via Tools Options in Unity Pro to enable disable the Generate ConvError Hints check box before converting e When this checkbox is enabled
99. ister are not accepted Unity does not import the second variable if this application is imported Behaviour of Variables Variable Instances and Parameters in Unity If And There Is Then symbols are used with a variable instance e the type declared in the declaration with the symbol is to be used e the type of a possibly present register variable instance is not a register variable with a type different from the default is to be used already a variable declaration with the same register but a different type an error message for this impossibility is issued a register variable with a type different from the default is to be used a variable declaration with the same register with the same type its symbol is to be used instead of the direct address aregister variable with a type different from the default is to be used no variable declaration with the same register an artificial symbol is to be declared and used instead of the direct address 204 33002515 07 2012 FAQ Build Errors If And There Is Then a pin in the Unity template has the type ANY ARRAY WORD an attached register variable could get the type ARRAY 0 0 OF WORD if it previously had the type WORD the register is used also at pins with the type WORD the register gets the index 0 attached Other Type Mismatch Cases Other type m
100. l procedure to convert a legacy application to Unit Pro Step Action 1 Export your application out of your legacy programming system e g as an ASC file out of Concept Create a new application in Unity Pro selecting a CPU with enough memory and the access capabilities needed Optionally you can configure the modules expected to be needed but you can modify the hardware configuration even later see step 6 Launch the conversion wizard in Unity Pro via Tools Convert Partially Result The conversion wizard asks you to select the exported legacy source file Select the exported legacy source file Result The converter analyzes the source file and displays the result in the 3 tabs of the conversion wizard Select the parts of the application or the complete application to be converted in the Structure tab Remap the I O objects for getting them compliant with the new hardware configuration Concurrently you can modify the hardware configuration of the new application in Unity Pro Note To save a backup file of your intermediate mapping you can use the Save button With Load you can reload your latest saved intermediate l O mapping After finishing all your selections and manual modifications click OK Result The converter applies the defined remapping to the selected parts of the source file and imports the results into the opened Unity Pro Application Continue work
101. le function status RIO 1 7 Description Function description This function block provides the function status for I O modules of an I O station local remote Quantum I O or 800 I O can be used An output sTATUSx is allocated to each rack Each module slot of this rack is characterized by a bit of the corresponding STATUSx output The bit on the far left hand side in STATUSx corresponds to the slot on the far left hand side of the rack x Using STATUS1 to STATUSS e Quantum I O There is only one rack for an I O station e g only STATUS1 is used e 8001 0 There can be up to 5 racks for an I O station e g STATUS1 corresponds to module rack 1 STATUS5 corresponds to module rack 5 NOTE If a module on the module rack has been configured and works correctly the corresponding bit is set to 1 EN and ENO can be configured as additional parameters 33002515 07 2012 173 RIOSTAT Representation in FBD Representation RIOSTAT Instance RIOSTAT Local RemoteDropNo DROP STATUSI StatusBitPatternRackl STATUS2 StatusBitPatternRack2 STATUS3 StatusBitPatternRack3 STATUS4 StatusBitPatternRack4 STATUSS StatusBitPatternRack5 Representation in LD Representation RIOSTAT Instance RIOSTAT EN ENO Local RemoteDropNo DROP STATUSI StatusBitPatternRack1 STATUS2 StatusBitPatternRack2 STATUS3 Stat
102. ll automatically create a connection Purely horizontal FFB connections between objects that are not FFBs will be replaced with horizontal connections with multiple segments When two OR objects are connected a horizontal connection is first connected to the right side of the source OR object An FFB connection will then be created between this horizontal connection and the target object This occurs because the two OR objects would otherwise be combined during the import into Unity Each point of the left bus bar can only be occupied by one connection 33002515 07 2012 39 Requirements Example of a picture in Concept cz 1 355 E C TUD 2 c1 c6 q6 EN END Iw c2 c3 c5 c9 c10 q5 141 m c35 c36 c11 c12 CD QD 74 y c37 c13 14 R c40 c30 q6 LD Y 7 c38 c31 9876 PV CV il 39 31 picture after the conversion to Unity d c 1 355 P C TUD 1 6 46 N EN END c2 c3 c5 c9 c10 q5 2 Y a Y c35 c36 c11 c12 CD QD 74 37 14 R c40 c30 q6 IN E c38 c31 9876 PV cv il c39 c32 40 33002515 07 2012 Requirements The following actions were performed during the conversion according to the r
103. mbol xxxx page 208 Call of Non Function Block page 210 Parameter Has to Be Assigned page 213 xxxX Is Not a Parameter of yyyy page 214 DDT Component Is Missing page 215 EHC Parameters Out of Range page 216 Not a Valid Address page 217 198 33002515 07 2012 FAQ Build Errors Object Link Creation Error Cause One reason of this message which occurs during import already and when analyzing can be that the converter does not have implemented the substituion of the extensible diagnostic blocks with dual FBs Explanation D GRP and D PRE both need an AND block attached to their IN input This additional AND has to be implemented so thatit gets all inputs of the former extensible area Add the missing block by hand IPR 20791 Example 9 TIME MAST original object 9 TIME MAST 9 TIME MAST original object 9 TIME MAST Figure 9 20 TIME TO B EN ENO Import Error r2 Object Link creation error c 1 E1189 converter error Link pin can not be located in Link to pin linkSource row 1 col 0 Object FBI 9 2 DRAW Pin OUT can not be created Object has not been created during import r 2 r 6 Object Link creation error c 1 E1002 syntax error c 13 E1189 converter error Link pin can not be located in Link to pin linkDestination row 5 col 12 Object FBI 9 2 Pin can not be created
104. ming language are converted to the LD programming language in Unity Pro in a later version Restrictions for old LL984 configurations The following points from LL984 configurations are no longer supported by Unity Pro Not supported by Unity Pro Supported by Unity Pro LL984 loadables Concept system and IEC loadables are completely integrated ASCII messages Will not be converted User loadables Unity Pro provides the equivalent EFBs or DFBs instead 6x range register in expanded memory Will not be converted Mixed programmed projects 984 IEC When you want to convert mixed programmed projects please contact Product Support at Schneider Electric Data protection configuration extension Will not be supported 20 33002515 07 2012 Requirements Hot Standby HSBY There are the following differences for converting the Concept Hot Standby to Unity Pro Concept Unity Pro The Hot Standby system in Concept is based on the 140 CHS 111 00 module This module is no longer supported by Unity Pro The 140 CHS 111 00 module is purely a Hot Standby Module for a single slot The power is supplied via the rack The CPU 671 60 module is a CPU module for two slots with a fixed assigned connection for data exchange The Hot Standby system is integrated into the CPU 671 60 module The Concept converter replaces the CPU from Concept with t
105. n Concept FFB connections between Boolean objects may be edited This may result in crossovers Example of an FFB connection between Boolean objects coils contacts horizontal and vertical connections in Concept cor gpa 5 c4 ca cB cr Following the conversion from Concept to Unity an FFB connection between Boolean objects may look like this 36 33002515 07 2012 Requirements In the Unity LD Editor such FFB connection may be e deleted e moved e copied and pasted However such FFB connection cannot be created in the Unity LD Editor The FFB connection will remain after moving in Unity gt Position after moving old Position Connection to the right bus bar A connection to the right bus bar is no longer required q19 AN c1 c2 c3 c4 c5 c6 q18 a c c8 c9 c 10 11 12 c1 el c3 c4 c5 c6 q20 Y 1 2 1 MZ c7 d9 d7 c4 c5 di d8 1 IA 33002515 07 2012 37 Requirements Automatically created connections In Concept the contact c9 is not connected with INPUT PV of the component FBI 9 143 CTUD c4 q402 EN c5 c502 CU QU 10 q602 CD QD I c6 R c7 LD c9 PV cv b In Unity the contact c9 would automatically be connected wi
106. ned first of all by how the FFBs are positioned If the FFBs are then linked graphically the execution order is determined by the data flow After this the execution order can be changed based on the intention In Unity Pro after conversion it is not possible to see in what order the FFBs were positioned Therefore whenever the order cannot be determined unambiguously from the data flow rule alone the order is defined by the Concept project The defined execution sequence is shown by means of a rectangle with the step number in the upper right hand corner of the FFB Single Sweep Function The single sweep function is no longer supported by Unity Pro The corresponding functionality can be realized in Unity Pro using the Debug function Breakpoints 22 33002515 07 2012 Requirements EFB Download Using Concept all platform dependent EFBs can be placed at any time and loaded in all PLC platforms Any errors detected during the program execution are written to the message memory In Unity Pro only valid EFBs can be placed Download to the PLC is only possible if the EFBs used are consistent with the PLC platform Reference Data Editor RDE RDE tables created in Concept are converted to Unity Pro when they are placed in the same directory as the Concept ASCII file Global Variable Values State RAM Because of different restart behaviors after a power outage it is possible that the global variable states of two
107. nimum input the MinimumViolation output becomes 1 If the value at the Input input is more than the value at the LimitMaximum input the MaximumViolation output becomes 1 The data types of the LimitMinimum Input LimitMaximum input values and the Output output value must be identical EN and ENO can be configured as additional parameters Block formula OUT IN if IN lt MX amp IN 2 MN OUT MN if IN MN OUT MX if IN gt MX MN_IND 0 if IN gt MN MN_IND 1 if IN lt MN MX_IND 0 if IN MX MX_IND 1 if IN gt MX 33002515 07 2012 139 LIMIT IND DFB Representation in FBD Representation LIMIT IND DFB Instance LIMIT IND DFB LimitMinimum MN MN IND MinimumV iolation Input IN OUT Output LimitMaximum MX MX IND Maximum Violation Representation in LD Representation LIMIT IND DFB Instance LIMIT IND EN ENO Minimum Violation LimitMinimum MN Input IN OUT Output Maximum Violation LimitMaximum MX mD Representation in IL Representation CAL LIMIT IND DFB MN LimitMinimum IN INPUT MX LimitMaximum MN IND gt MinimumViolation OUT gt Output MX IND 2MaximumViolation Representation in ST Representation LIMIT IND DFB MN LimitMinimum IN INPUT MX LimitMaximum MN IND gt MinimumViolation OUT gt Output MX
108. no longer be assigned to the State RAM with Unity Pro All required information can be accessed via the control panel When Concept is converted to Unity Pro DFBs are created which can be simulated in Unity Pro without further manual modifications of these functionalities NOTE The Concept Timer Register is 16 bits long and has an accuracy of 10 ms The equivalent system word SW18 in Unity Pro is 32 bits long and has an accuracy of 100 ms If this accuracy is not sufficient the FREERUN function from the System library can be used which delivers accuracy of up to 1 ms NOTE When dealing with days of the week the value 1 corresponds to Sunday in Concept and Monday in Unity Pro Quantum Diagnostics Words In Unity the diagnostics words are specified to be a certain number e Local I O 16 Words e RIO 1 0 16 Words e DIO I O 16 Words In Concept it was also possible to specify a smaller number of diagnostics words for the individual I Os Keep this difference in mind since it can cause problems Topological Addresses The topological addresses are assigned so that if the hardware configuration remains the same they occupy the same connections as they were assigned Concept The user sees the hardware addresses in Unity Pro that they are using without having to carry out the intermediate step via the State RAM 33002515 07 2012 27 Requirements Located Variable Located BOOL variables in Concept are converted
109. nput output parameters Parameters Data type Meaning REG READ ANY ARRAY WORD Writing data For the file to be read a data structure must be declared as a located variable Description of the output parameters Parameters Data type Meaning STATUS WORD Error Code 120 33002515 07 2012 CREADREG Mode of Functioning Function mode of CREADREG blocks Although a large number of CREADREG function blocks can be programmed only four read operations may be active at the same time It makes no difference whether these operations are performed using this function block or others e g MBP_MSTR READREG All function blocks use one data transaction path and require multiple cycles to complete a task The complete routing information must be separated into two parts e inthe NODEADDR of the destination node regardless of whether it is located in the local segment or in another segment and e the routing path in case there is a link via network bridges The resulting destination address consists of these two information components The routing path is a DINT data type which is interpreted as a sequence of two digit information units It is not necessary to use 00 extensions e g both routing paths 4711 and 47110000 are valid for NODEADDR 34 the result is destination address 47 11 34 00 00 NOTE This function block puts a heavy loa
110. nt assignments The hex word must be split into single bits AR2 BOOL 17 true 33002515 07 2012 71 Language Differences Topological Address Overlapping Same Topological Address In Unity you are warned during application analysis if the same topological address is assigned to multiple variables 72 33002515 07 2012 Language Differences Substitute QD by MF Introduction Variables that are directly addressed in Concept with can be initialized floating point constants or dual word constants When mainly floating point constants appear the Substitute QD by MF checkbox should be enabled Conversion Settings Open the Conversion Settings tab via Tools Options in Unity Pro to enable disable the Substitute QD by MF check box before converting e When this checkbox is enabled QD variables are converted to MF variables e When this checkbox is not enabled QD variables are converted to MW variables 33002515 07 2012 73 Language Differences Structure Alignment Changed DPM Time Structure Manual Correction Unity uses a 2 byte alignment for structures in contrast to Concept 1 Byte to speed up the access to structure components This affects system structures mapped to StateRam because the same structures in Unity can be bigger including some byte gaps The concerned structure is DPM Time which has been redefined for Unity to re map to the correct hardware addresses C
111. oScCTMSTR 2 0 MicroScCTMSTR 3 3 MicroScCTMSTR 4 47 MicroScCTMSTR 5 1028 MicroScCTMSTR 6 1 MicroScCTMSTR 7 0 MicroScCTMSTR 8 0 MicroScCTMSTR 9 MicroScCTMSTR10 1 62 END Data Editor Variables DDT Types Function Blocks lt Filter EDT DDT v lODDT Name Address Value A CE BJ MicroScCTMSTR10 1 1 OF WORD MW2319 Microsc T METRE WORD MW2318 6 MicroScCTMSTR7 WORD MW2316 s MicroScCTMSTR6 WORD MWV2315 1 MicroScCTMSTR5 WORD MW2314 1028 0 MicroScCTMSTR4 WORD MW2313 47 MicroScCTMSTR3 WORD MW2312 3 amp MicroScCTMSTR2 WORD MWV2311 EE E MicroScCTMSTR ARRAY 1 9 OF WORD MW2310 y 4 The source code related to this is in this case RESET CONV lt DFB gt RC HSK 11 r 2 c 2 E1063 call of non function block RESET CONV DFB RC HSK 1 4 c 29 E1067 Q is not a member of SECT 206 33002515 07 2012 FAQ Build Errors Empty DFB to Replace Obsolete EFB Cause Solution A few standard EFB have not been ported from Concept to Unity If the Converter finds one of them it inserts an Empty DFB with the same parameters as the original to allow building of the application and to give the possibility to the user to substitute the original with code of his own Insert the code into the body of the empty DFB which contains
112. ock from the communication block library NOTE This function block does not support TCP IP or SY MAX Ethernet If TCP IP or SY MAX Ethernet is needed please use the CWRITE REG block from the communication block library NOTE Several copies of this function block can be used in the program However multiple instancing of these copies is not possible Representation in FBD Representation CWRITREG Instance CWRITREG Device Address j NODEADDR STATUS ErrorCode RoutingPath ROUTPATH OffsetAddress SLAVEREG NumberOfRegisters NO REG SourceDataArea REG_WRIT REG WRIT SourceDataArea 126 33002515 07 2012 CWRITEREG Representation in LD Representation CWRITREG Instance CWRITREG EN ENO DeviceA ddress NODEADDR STATUS ErrorCode RoutingPath ROUTPATH OffsetA ddress SLAVEREG NumberOfRegisters NO_REG SourceDataArea REG WRIT WRIT SourceDataArea Representation in IL Representation I CAL CWRITREG Instance NODEADDR DeviceAddress ROUTPATH RoutingPath SLAVEREG OffsetAddress NO REG NumberOfRegisters REG WRIT SourceDataArea STATUS gt ErrorCode Representation in ST Representation CWRITREG Instance NODEADDR DeviceAddress ROUTPATH RoutingPath SLAVEREG OffsetAddress NO REG NumberOfRegisters REG WRIT SourceData
113. ock on the simulators cannot be guaranteed The GET_TOD function block reads the hardware clock if relevant registers are provided with this configuration If these registers are not present the CNF output is set to 0 Representation in FBD Representation GET TOD Instance EN and ENO can be configured as additional parameters GET TOD TOD CNF D WEEK MONTH DAY YEAR HOUR MINUTE SECOND RegisterPresentF lag I DayOfWeek I BYTE variable2 I BYTE variable3 I BYTE variable4 I BYTE variableS BYTE variable6 I BYTE variable7 33002515 07 2012 135 TOD Representation in LD Representation GET TOD Instance GET TOD EN ENO RegisterPresentFlag TOD_CNF h D WEEK DayOfWeek MONTH BYTE variable2 DAY BYTE variable3 YEAR BYTE variable4 HOUR BYTE variable5 MINUTE BYTE variable6 SECOND BYTE variable7 Representation in IL Representation CAL GET TOD Instance TOD CNF gt RegisterPresentFlag D WEEK DayOfWeek MONTH gt Byte variable2 DAY gt Byte variable3 YEAR gt Byte variable4 HOUR gt Byte variable5 MINUTE gt Byte variable6 SECOND gt Byte variable I Representation in ST Representation GET TOD Instance TOD CNF gt RegisterPresentFlag D WEEK DayOfWeek MONTH gt Byte variable2 DAY gt Byte variable3 YEAR gt Byt
114. on or a procedure The converter does conversion work in the textual languages ST and IL half automatic in the case of this incompatibility The instance name of Concept is removed and substituted by the type name also for addressing outputs which is then an illegal syntax LOOKUP TABLEl X ODT XiYil 30 0 XiYi2 PARA pl XiYi3 20 0 XiYi4 PARA p2 xiYi5 10 0 XiYi6 PARA p3 XiYi7 0 0 XiYi8 PARA p4 XiYi9 10 0 XiYil0 PARA p5 XiYill 20 0 1 112 PARA p6 OUT LOOKUP 1 Solution The last line must be corrected manually Using the output assign operator this statement must be changed and moved inside the call parentheses LOOKUP TABLEl X ODT XiYil 30 0 XiYi2 PARA pl XiYi3 20 0 XiYi4 PARA p2 XiYi5 10 0 XiYi6 PARA p3 XiYi7 0 0 XiYi8 PARA p4 XiYi9 10 0 XiYil0 PARA p5 XiYill 20 0 XiYil2 PARA p6 Y gt 0UT 33002515 07 2012 209 FAQ Buil d Errors Call of Non Function Block Cause Exampl This message can appear when a Concept function block now in Unity is a function or a procedure The converter removes the instance name of the Concept block and substitutes it with the type name and moves assignments of outputs inside the invocation parentheses For the blocks GET BIT and SET BIT the treatment does not completely apply IPR 20015 During analysis messages occur INPUTS
115. oncept s DPM Time definition sync BOOL ms WORD Unity s DPM Time definition Sync BOO ms lsb BYTI ms msb BYT p E If an application that includes the DPM time structure is converted the analyze build process will fail for the redefined structure components in the above example ms l1sb ms msb The user has to manually change the usage of these structure components in the application accordingly 74 33002515 07 2012 Language Differences Undefined Output on Disabled EFs Outputs of EFs Not Kept In case the EN switches from TRUE to FALSI E the outputs of EFs from the previous cycle are not kept in Unity This reduces the memory consumption in the PLC This is different from EFBs which keep their value from the previous cycle Concept uses static links to latch the value from the previous cycle Execution Behavior Differs Significantly If a Concept application relies on the outputs of EFs to keep their old values the execution behavior in UNITY will differ significantly Manual Correction The application has to be changed manually Links from outputs which are assumed to keep their value need to be replaced by variables If the EN of an EF is set to false the EF is not executed and a connected variable is not touched Concept The output of the disabled SEL EF is kept and used as input for the INT function block 33002515 07 2012 75 Langua
116. ounter for lost communications 9 16 Cumulative repetition counter The second word in each group of three is the cumulative I O station error counter at cable A for the corresponding I O station 1 2 3 4 5 67 8 292 1011112 13 14 15 16 Bit Allocation 1 8 Minimum one error in words 2 to 4 9 16 Counts zero responses The third word in each group of three is the cumulative l O station error counter at cable B for the corresponding I O station 1 21314 516 89 10 11 12 13 14 15 16 Bit Allocation 1 8 Minimum one error in words 5 to 7 9 16 Counts zero responses NOTE For PLCs where the I O station 1 is reserved for the local I O words word11 to word13 are allocated as follows 162 33002515 07 2012 PLCSTAT word11 shows the global I O station status 1 14 15 16 Allocation 1 All modules OK 9 16 how often a module is regarded as not OK counter overflow is at 255 word12 is used as a 16 bit I O bus error counter word13 is used as a 16 bit 1 O repetition counter 33002515 07 2012 163 PLCSTAT 164 33002515 07 2012 READREG Read register 16 Introduction This chapter descr
117. put parameter invoked in a case where the Function Block does not write to the output nothing changes in Concept but in Unity the variable buffer value in the instance area resulting from a previous invocation is assigned to the output parameter To detect such cases multiple assignments to elementary variables or derived data type components from Function Blocks are detected by the Concept converter if the appropriate option is checked e Detected for Elementary and Derived Function Blocks e Works in DFB and Program Sections e Reports during conversion in the build tab of the output window with textual identification of the concerned locations e The same textual report appears in the Conversion report e Reports in FBD and LD sections with ConvError blocks placed above the concerned Function Blocks 86 33002515 07 2012 Possible application behavior change e On Analysis messages appear in the Analyze Build tab of the output window which can be opened by double clicking and opening the concerned section and directly showing the concerned Function Block Using this report the user can adapt this code to ensure common operation e g by changing the DFB outputs to InOut parameters which offer direct writing also in Unity NOTE If the application uses multi assignment on EFB outputs you should carefully read the following chapter to verify that the converted application works in the intended way EFBs cannot be c
118. r the Backplane Expander 140 XBE 100 00 is renamed when converting Concept to Unity Pro Concept Unity Pro XBP XBE 34 33002515 07 2012 Requirements Programming Language SFC General For some programming languages there are restrictions to observe when converting a project from Concept to Unity Pro Parallel Alternative Sequence A parallel branch may not be directly followed by an alternative branch This type of sequence is not permitted according to IEC 1131 Unity Pro does not support this type of sequence although it is possible in Concept The converter transfers this type of project to Unity Pro but manual modifications are subsequently required This problem can be solved by inserting an dummy step between the branches S 5 10 5511 b 8 512 S 5 13 S 5 16 d 5 5 14 5 515 m 33002515 07 2012 35 Requirements Programming Language LD General For some programming languages there are restrictions to observe when converting a project from Concept to Unity Pro Conversion of the picture When converting a Concept project to Unity Pro the ladder diagram LD Picture is also converted which can lead to a restructuring of the picture Crossovers with connections between Boolean objects I
119. ransitions In Concept the Old Value to recognize a transition will only be updated once per cycle In Unity Pro the Old Value will be updated during every write access Example Concept Switch 1 from 0 gt 1 and the value of MW1 and MW2 increase Unity Pro Switch QX1 from 0 gt 1 and only the value of MW1 increases NOTE Use objects to recognize transitions with a certain variable only once per cycle Also see Located Variable page 28 and Unity Pro Reference Manual Use of set and reset coils leads to edge loss see Unity Pro Program Languages and Structure Reference Manual Macros name begins with will be rejected by the converter because macros cannot be implemented in Unity However if you try to import an application with macros the macros will be replaced with Dummy DFBs indicated with the in the application name Error messages regarding these Dummy DFBs will appear during the analysis of the project To correct these errors simply remove all DFBs that were created to replace macros 46 33002515 07 2012 Requirements Programming Language ST IL General For some programming languages there are restrictions to observe when converting a project from Concept to Unity Pro Generic EFBs Only call generic EFBs instances once Using Concept 2 2 assign the outputs directly after the EFB call of a variable Syntax with Concept 2 5 Only use the new syntax for Concept 2 5
120. rations in this DDT and find out which of these are undefined Further types unused but present in the opened asc file are reported as unknown in a dialog during import Concept System Data Types Concept dty Files This happens for Concept system data types which are considered for Concept to be always presented and therefore not included in the export by Concept The Converter automatically includes the standard system data types of Concept individually if they are needed They are part of the converter command and include file CConv xml present in the execution directory of Unity If the read only flag is removed this file can be extended to include additional data types for user EFB libraries Such data type files beyond the global local ones are placed in the lib subdirectory of Concept to be merged into the Concept application but these data types do NOT appear in the Concept export file The V1 1 version of the Concept converter will have the capability to add Concept dty files which are stored in the same directory as the asc file to the converted application as if their content were appearing inside the asc file itself 106 33002515 07 2012 Conversion Procedure Converting Only Parts of a Concept Application General Single DFB Subset of Sections Subset of Variables Animation Tables The Concept converter is prepared to convert complete applications and parts of applications If onl
121. rences I O Management library Family FFB Platform Analog Configuration FILTER SET O FILTER O SET Quantum only Analog Scaling I_NORM I_NORM_WARN I_PHYS I_PHYS_WARN I_RAW I_RAWSIM I_SCALE I_SCALE_WARN O_NORM O NORM WARN O PHYS PHYS WARN O RAW SCALE O SCALE WARN Quantum only Immediate 1 IMIO IN IMIO OUT Quantum only 56 33002515 07 2012 Language Differences Family FFB Platform Quantum I O Configuration ACIO30 ACIO40 020 130 AII330 AII33010 AIO330 090 ARIOSO ATIOSO AVIOSO AVOO20 DROP ERT 854 10 NOGSTATUS QUANTUM XBE XDROP Quantum only 33002515 07 2012 57 Language Differences Motion library Family FFB Platform MMF Start CFG CP F CFG CP V CFG_CS CFG_FS CFG_IA CFG_RA CFG_SA DRV_DNLD DRV_UPLD IDN_CHK IDN_XFER MMF BITS MMF_ESUB MMF_INDX MMF_JOG MMF_MOVE MMF_RST MMF_SUB MMF_USUB Quantum only Obsolete Lib library Family FFB Platform Extensions Compatibility GET_3X IEC_BMDI Quantum only System library Family FFB
122. ription Description of the input parameters Parameter Data type Meaning XiYil REAL X coordinate 1 Support point XiYi2 REAL Y coordinate 1 Support point XiYin REAL X coordinate m 2 Support point XiYim REAL Y coordinate m 2 Support point X REAL Input variable Description of the output parameters Parameter Data type Meaning Y REAL Output variable QXHI BOOL Indicator X Xm OXLO BOOL Indicate X X1 33002515 07 2012 145 LOOKUP TABLE1 DFB Detailed description Parameter description Each two sequential inputs xiYi represent a support point pair The first input XiYi corresponds to X1 the next one to v1 the one after that to X2 etc For all types of input value in x found between these support points the corresponding output value is interpolated while the traverse progression between the support points is viewed linearly ForX X is Y Y 4 ForX gt XmiSsY Ym If the value at input x is higher than the value of the last support point Xm the output OXHI becomes 1 If the value at input x is less than the value of the first support point x1 the output QXLO becomes 1 Principle of interpolation Traverse progression with 1st degree interpolation Xi X Xit1 Xm 1Xm 146 33002515 07 2012 LOOKUP TABLE1 DFB Interpolation The following algorithm applies to a point Y pud ia AM 31 3 forx x xx 4 andicz 1 m 1 Y A
123. s e g SW49 in the same application 80 33002515 07 2012 Language Differences System Timer Concept Concept s system timer was located on a user defined register word 16 bit and incremented at 10 ms Unity Unity provides an incremental timer with 100 ms updating 3SW18 A 10 ms timer can be logically created using the FREERUN function sec timer 33002515 07 2012 81 Language Differences Initial Values Definition of Initial Values Concept allows the initial values on DFB pins of a structured array to be defined Unity forbids this option for pins of array type This option is reserved for output pins of structure type The converter reflects this with the following error message in the conversion log _ ALLDFB 20030409 230133 log Notepad File Edit Format Help 23 02 17 140 Config 140CP0554144 Quantum 23 02 17 203 gt Error 23 02 17 203 gt Error 23 02 17 203 convert initial values of call Cannot convert initial values of call Modify Inst calcul of CTRL to calcul S3ctl Error Cannot convert initial values of call by reference data pin Add PV inl Pins to be Connected At the same time Unity enforces pins of array type and input pins of structured type to be connected which in this case leads to analysis errors ALL MAST r 26 c 68 E1194 oarameter IN2 has to be assigned ALL MA
124. s an existing variable declaration If they are conflicting the declaration is refused in Concept CP ST 0W102 REAL Parameters The pin a variable instance is attached to has a type of its own which is not necessarily the same as that of the variable instance It cannot be changed and can be generic VS FRM IN1 HIDE POSL 2 FP IO INPUT FP INP NORMAL FP LOC OUTSIDE INT TEXT VS FRM IN HIDE POSL 2 FP IO INPUT FP INP NORMAL FP LOC OUTSIDE ANY TEXT NOTE So there are three n different types possible to be declared for a register variable in Concept 1 2 gt n 4 6 33002515 07 2012 203 FAQ Build Errors Type Declaration in Unity Unity accepts one type declared with a symbol associated to a register If the register is used directly only its default type is assumed To generate code the type and size of a variable attached to a pin must be determined to one type Different pins might have different types Register Variable Instance If there is a register variable instance with its type and additionally a variable declaration with a different type and the same register Concept generates code according to the type supplied with the register or with the symbol individual for each Default Type pin Unity knows only a default type for registers If this type is to be changed a variable with a symbol must be declared to carry the type but two symbols with different types for one reg
125. s or as variable names Such a case is the name slot IPR 19938 Solution If DDT components are missing or import conflicts are imported proceed as follows Step Action 1 Search for the occurrence of the name in the asc file with another meaning 2 Change the name for the conflicting meaning 33002515 07 2012 215 FAQ Build Errors EHC Parameters Out of Range Cause For the High speed counter module parameter limits are not treated right IPR 19656 Example 2 Overview t objects Parameter Name Value MAPPING WORD IW 3x 4 INPUT START ADDRESS 1121 INPUT END ADDRESS 1126 OUTPUT START ADDRESS 1121 OUTPUT END ADDRESS 1126 S001 1 Ko RIO Bus 2414 1 Parameter OUTPUT START ADDRESS out of range Error with param 17 Solution Such Parameters must be manually corrected 216 33002515 07 2012 FAQ Build Errors Not a Valid Address Cause Solution A message like the following one is generated at analyze time if a Hot Stand By system is incompletely defined Analyzing Cpu 1 2 140 CPU 671 60 MWO is not a valid address in Quantum Step Action Open the local rack of the configuration and the CPU configuration itself and select the Hot Stand By tab of the CPU configuration 2 In its lower part appear State Ram and Non Transfer area Usually both the Start and Length f
126. ssuming X 4 X 2 amp X j XX i44 amp X m 1 X m The x values must be in ascending order Two consecutive X values can be identical This could cause a discrete curve progression In this instance the special case applies Y 05x Yj Y for Xj 2Xz Xj4andiz 1 m 1 33002515 07 2012 147 LOOKUP TABLE1 DFB 148 33002515 07 2012 PLCSTAT PLC function status 15 Introduction This chapter describes the PLCSTAT block What Is in This Chapter This chapter contains the following topics Topic Page Description 150 Derived Data Types 152 PLC status PLC STAT 154 RIO status RIO STAT for Quantum 156 DIO status DIO STAT 158 33002515 07 2012 149 PLCSTAT Description Function description This derived function block reads the Quantum PLC internal states and error bits and copies this data to the data structures allocated to the respective outputs EN and ENO can be configured as additional parameters Only data with the input bit PLC READ RIO READ DIO READ set to 1 will be read Evaluation The evaluation of PLC STAT PLC status RIO STAT I O status STAT I O communications status is possible NOTE The name of the output DIO STAT is confusing This output only relates to the remote Drop Status Information 8908 and not to the Distributed status To read the distributed I O status use t
127. t instructions must be followed Failure to use Schneider Electric software or approved software with our hardware products may result in injury harm or improper operating results Failure to observe this information can result in injury or equipment damage 2012 Schneider Electric All rights reserved 33002515 07 2012 Table of Contents Part I Chapter 1 Chapter 2 Chapter 3 Safety Information About the Requirements and conversion General Description of the Unity Pro Concept Converter General Conversion with the Conversion Requirements Concept Supported Hardware Configuration rn ar ea vr URL t Rs OSM Se LINE e EUR e esed ive Xo Bec ror dee Pe pe dg Programming Language Programming Language LD Programming Language Programming Language 11984 Programming Language Language Differences Functions Not Present in
128. th INPUT PV because both cells directly border in Concept During the conversion from Concept to Unity the contact c9 is therefore moved down to avoid the creation of an automatic connection in Unity 9 143 CTUD c4 9402 EN END c5 c502 10 q602 CD QD c6 R LD cv 38 33002515 07 2012 Requirements Conversion of the output picture During the conversion it is desired that the conversion of the picture from Concept to Unity is as exact as possible To achieve this the following rules are applied Rules for Object Positioning The distance between two objects must be at least one cell When two FFBs are connected the minimum distance must equal the number of cells of the first FFB s width The cells in Unity are smaller If an FFB partially occupies another cell an additional cell is required for the FFB If an object contact or coils has a vertical connection OR Link this vertical connection will be located at the end of the cell of the object An additional cell is required if e a vertical connection OR Link with an INPUT FFB exists e the source FFB has output variables e the target FFB has input variables A coil may not be directly connected to the left bus bar Rules for the conversion of FFB connections FFB connections between variables constants and FFBs will be ignored In these cases Unity wi
129. the command to generate a message like the following in it 51 REAL W2 1 2 E1189 converter error Empty DFB to replace obsolete EFB fill by user The command for the message has to be deleted if valid code has been filled into the DFB body to allow building of the application NOTE Because the ANY type is not allowed on DFBs in Unity an additional problem occurs if this type has been used in the substituted EFB e g XXMIT EFB Customer Defined EFBs Customer defined EFBs are not converted If you want to convert an application using Customer defined EFBs get in contact with Schneider support 33002515 07 2012 207 FAQ Build Errors Undefined Symbol xxxx Wrong SFC Section Name Explanation This message is given sometimes in conjunction with the block SFCCNTRL The message means that the SFC section name which has to be attached to the CHARTREF input is not the name of an existing SFC section inside of the current application Solution Create the according section and the message disappears PE301_SequenceSFC1_S SFCCNTRL EN ENO PE301 FaultReset PE301_SequenceSFC1 CHARTREF OL LSO S PII INIT INTST CLEAR CLEARST E 208 33002515 07 2012 FAQ Build Errors Wrong Instance Name Explanation Another reason of such a message can be IPR 20020 that a Concept function block now in Unity is a functi
130. tion This chapter describes the CREADREG block What Is in This Chapter This chapter contains the following topics Topic Page Description 118 Mode of Functioning 121 Parameter description 122 Modbus Plus Error Codes 123 33002515 07 2012 CREADREG Description Function description This derived function block reads the register area continuously It reads data from addressed nodes via Modbus Plus EN and ENO can be configured as additional parameters NOTE It is necessary to be familiar with the routing procedures of your network when programming a CREADREG function Modbus Plus routing path structures will be described in detail in Modbus Plus Network Planning and Installation Guide NOTE This function block only supports the local Modbus Plus interface no NOM If using a NOM please work with the block CREAD REG from the communication block library NOTE This function block does not support TCP IP or SY MAX Ethernet If TCP IP or SY MAX Ethernet is needed please use the block CREAD REG of the communication block library NOTE Several copies of this function block can be used in the program However multiple instancing of these copies is not possible Representation in FBD Representation CREADREG Instance CREADREG DeviceAddress NODEADDR STATUS ErrorCode RoutingPath ROUTPATH Offset Addr
131. tion must be separated into two parts e inthe NODEADDR of the destination node regardless of whether it is located in the local segment or in another segment and e the routing path in case there is a link via bridges The resulting destination address consists of these two information components The routing path is a DINT data type which is interpreted as a sequence of two digit information units It is not necessary to use 00 extensions e g both routing paths 4711 and 47110000 are valid for NODEADDR 34 the result is destination address 47 11 34 00 00 33002515 07 2012 169 READREG Parameter description REQ NODEADDR ROUTPATH SLAVEREG NO REG NDR A rising edge triggers the read transaction The parameter can be specified as an address located variable unlocated variable or literal Identifies the node address within the target segment The parameter can be specified as an address located variable unlocated variable or literal Identifies the routing path to the target segment The two digit information units run from 01 64 see Mode of Functioning page 169 If the slave resides in the local network segment ROUTPATH must be set to 0 or must be left unconnected The parameter can be specified as an address located variable unlocated variable or literal Start of the area in the addressed slave from which the source data is read The Source area always resides within the 4x regist
132. to EBOOL variables in Unity Pro Unity Pro provides this new EBOOL variable for the detection of transitions edges This Elementary BOOL type is used for Ix Mx and unlocated variables EBOOL variables can be forced The EBOOL variable provides three informational items e Current value e Historical value e Force information Only the current value can be accessed the other values can only be accessed via product specific functions Longer Cycle Time via EBOOL Constants Register In Unity as opposed to Concept the edge and force information is updated from EBOOL variables during program runtime For this reason on the Quantum CPU 434 CPU 534 and CPU 311 platforms the assignment of EBOOL variables is only half as fast as the assignment of BOOL variables NOTE If you need variables in the signal memory use BOOL variables and assign them to the memory area MW e g BoolVar BOOL AT MW10 Otherwise use unlocated BOOL variables Constants in Concept are converted to write protected variables in Unity Pro Unity Pro does not provide constants Comparable functionality is achieved using write protected variables In Concept the Ox registers are not buffered They are reset to zero with every warm restart In Unity Pro the Mx registers are buffered RETENTIVE RETAIN i e Conform to IEC Do not use the possibility to set the Ox register to zero on every warm restart if you use a project in Conc
133. tual variable values addresses at which to locate the actual variable values or a combination of the two These values are always passed to the executing code in the data structure associated with the function block instance The results of function block execution are also returned in this data structure Hence if the function block invocation is implemented as a procedure call only a single argument the address of the instance data structure need be passed to the procedure for execution 33002515 07 2012 91 Possible application behavior change Unity Behavior Changed Parameter Handling To fulfill the IEC demands the normal EDT Elementary Data Types parameter handling was changed from Concept to Unity The following figure describes the actual implementation in Unity Connected input variable Connected output variable Copy of inputs Copy of outputs Instance data EFB Code The EFBs no longer get pointers to their connected pin variables They always get the data by value In every scan the application code updates the copy of the input data in the instance data before the function block is called 1 The copy of the pin data is located in the instance data of the block and the function block code always works on the instance data 2 After the function block code execution the application code copies the updated function block output data from
134. ules above The space that is occupied by the FFB was expanded to two columns One column each was added at the Input and Output sides of the FFB The connections between coils contacts and the FFB were realized with FFB connections not with horizontal connections with multiple segments Recognize and disconnect LD Networks The converter must recognize networks in LD sections during the conversion To achieve this the following rules are applied An LD Network is a group of objects that are connected with each other without any other connections to other objects except the bus bar The minimum distance is always applied to a complete column of a network This means that if an object of a column requires a certain minimum distance all other objects are also moved with a higher or equal horizontal position If there are several networks in the same row in Concept the following network will be moved vertically until it no longer occupies the same rows with the preceding network To avoid undesired automatically created FFB connections the space that is occupied by an FFB and its connection space will be checked for crossovers In the event of crossovers the following objects will be moved horizontally Schematic diagram of an LD Network in Concept with crossovers
135. usBitPatternRack3 STATUSA StatusBitPatternRack4 STATUSS H StatusBitPatternRack5 174 33002515 07 2012 RIOSTAT Representation in IL Representation CAL RIOSTAT Instance DROP Local RemoteDropNo STATUS1 gt StatusBitPatternRackl STATUS2 gt StatusBitPatternRack2 STATUS3 gt StatusBitPatternRack3 STATUS4 gt StatusBitPatternRack4 STATUS5 gt StatusBitPatternRack5 Representation in ST Representation RIOSTAT Instance DROP Local RemoteDropNo STATUS1 gt StatusBitPatternRackl STATUS2 gt StatusBitPatternRack2 STATUS3 gt StatusBitPatternRack3 STATUS4 gt StatusBitPatternRack4 STATUS5 gt StatusBitPatternRack5 Parameter description Description of the input parameters Parameters Data type Meaning DROP UINT Local remote station no 1 32 Description of the output parameters Parameters Data type Meaning STATUS1 WORD Module rack 1 status bit pattern STATUS2 WORD Module rack 2 status bit pattern 800 1 only STATUS5 WORD Module rack 5 status bit pattern 800 I O only 33002515 07 2012 175 RIOSTAT 176 33002515 07 2012 SET TOD Setting the hardware clock Time Of Day 1 8 Description Function description This function block searches together with the other function blocks in the HSBY group the configuration of the respective PLC for the necessary components These
136. verted into Unity Pro Please refer to Conversion with the Conversion Wizard see page 15 33002515 07 2012 General Description Conversion with the Conversion Wizard Application Conversion as a Whole To convert an application as a whole while keeping the same PLC family and selection of application parts or remapping of I O objects is not needed use the Concept Application Converter directly via the Unity Pro menu File Open Partial Application Conversion To convert an application partially and or the PLC family must be changed or remapping of I O objects is needed use the conversion wizard via the Unity Pro menu Tools Convert Partially For detailed information please refer to the Operating Modes Manual gt Conversion Wizard Conversion Wizard The conversion wizard is an integrated part of Unity Pro You can use it to convert applications exported out of legacy applications Concept PL7 LL984 to Unity Pro convert legacy applications partially or as a whole remap objects channels variables etc during conversion by means of the wizard adapt concurrently the hardware configuration of the new application in Unity Pro modify the amount of used memory in the CPU The conversion wizard is available if you have chosen to install a converter e g Concept Application Converter during the setup of Unity Pro 33002515 07 2012 15 General Description General Procedure Genera
137. xxxx Call of Non Function Parameter Has to Be Assigned xxxx Is Not a Parameter 139 139 143 144 146 149 150 152 154 156 158 165 166 169 170 173 173 177 177 181 181 183 183 187 188 191 192 195 197 198 199 200 201 202 207 208 210 213 214 33002515 07 2012 DDT Component Is Missing 215 EHC Parameters Out 216 Not a Valid 4 217 140 NOG 111 00 Configuration Not 218 d Roi cR OUR ACE om 219 33002515 07 2012 Safety Information A Important Information NOTICE Read these instructions carefully and look at the equipment to become familiar with the device before trying to install operate or maintain it The following special messages may appear throughout this documentation or on the equipment to warn of potential hazards or to call attention to information that clarifies or simplifies a procedure The addition of this symbol to a Danger safety label indicates that an electrical hazard exists which will result in personal injury if the instructions are not followed personal injury hazards
138. y parts of a Concept application are needed either e use a reduced application export with Concept see sections below or e use the Conversion Wizard see Conversion with the Conversion Wizard page 15 If a single DFB is needed make a new application with 1 single section and place a call to the desired DFB into this section Export the application using the menu item Export with used DFBs in Concept Convert the resulting asc file in Unity Pro via File Open To export a subset of sections use the File Export Program Section s menu in Concept Select the source application and the desired sections and follow the user guidance to get a reduced application However if the section contains references to SFC steps Concept requires to export the referenced SFC section as well Convert the resulting sec file in Unity Pro with the Conversion Wizard via Tools gt Convert Partially To export a subset of variables first open the Variable Editor in Concept and select the desired variables After that use the File Export Variables Text delimited menu Convert the resulting txt file in Unity Pro with the Conversion Wizard via Tools gt Convert Partially If animation table files are present in the application export directory the animation tables will be automatically included in the conversion result 33002515 07 2012 107 Conversion Procedure Removing Accidentally Included Concept Macros General
Download Pdf Manuals
Related Search
Related Contents
Philips 196V3LAB5 Samsung 913N Benutzerhandbuch Bedienungsanleitung Universal-Probenpumpe Katalognr POÊLES AU BOIS ET À GRANULES Ultron Docking Station 5 1/4" , 16in1 CardReader UM Samsung ML-6050 User Manual Medline Wildcat II – Lines 7&8 - Paulson Gefen EXT-DVI-1CAT5-SR DE Aufstell- und Bedienungsanleitung Pelletofen WP2 Copyright © All rights reserved.
Failed to retrieve file