Peculiar to the data description is that a data element 0 of a length 0 has been created. This is a factor required by the internal access mechanism, as well as, for example, to determine internal addresses using the instruction “Q,inputno,type,bname,0;“ during interconnection. The following example uses some typical data types to show the storage location of data and how this data can be accessed via reference addresses. The instruction “D,TEST,ORPA:25,T=250;“ has been used to create a data description with the structure discussed above. At the same time, the header of the ORPA block with the internal number 7 has been created. Length and structure of ORPA have not yet been defined.
When a data record is defined
a copy of ORPA is produced and the required space provided in the RAM. During definition, memory space for the ’managed’ data elements (EAV, EDV, EBV, ETV as well as AA, AAD, AB and AT) is provided in the blocks of the type SAV, SBV, GAV and GTV and the associated addresses entered in the corresponding data elements of the specified data record.This shows that the ’managed’ data elements always contain addresses which refer either to managed data records or to other function blocks. The value displayed in the block list is fetched from this data location (fetching principle). For example, the block list of TEST.2 shows, in element E1, the value 456,78, which was parameterized in element E6 of TEST.1. The data of elements 1 to 6 is stored in areas maintained by the system. Data of elements 7 to 11 is stored in a separate data record.
Programs
The user function (function algorithm, test algorithm and loop display) must be defined within the frame specified by “NEMO” (NEw MOdule) and “END” using PROGRAM, CHECK or PICTURE. The example in Fig. 5.18 shows the input of the function y = x1 + x2 + x3 which has been implemented using TML instructions (See Chapter 5.7). A prerequisite for the definition of a user function is that data sets to be processed have already been defined (see Chapter 5.3.1). The data set in the example is defined for an adder (ADD) with 4 data elements (3 inputs, 1 output).
Professional service
In industrial automation, if you're looking for a new product or production of remaining parts, our knowledgeable and friendly colleagues can help you gain the required things, with our competitive prices, we will be proud to provide you with the necessary spare parts inventory
Superior products
Main products include DCS control system spare parts, PLC system spare parts and robot system spare parts,
Advantage brands: Allen Bradley, BentlyNevada, ABB, Emerson Ovation, Honeywell DCS, Rockwell ICS Triplex, B&R, FOXBORO, Schneider PLC, GE Fanuc, Motorola, HIMA, TRICONEX, Prosoft and other imported industrial parts