Commissioning
EL47xx
110
Version: 2.7
Fig. 134: Adding a Scope project into an already existing project
Step 2a: Creation of a PLC variable within a POU
Within the TwinCAT 3 development environment an input variable as an array with respective amount than is
given by the oversampling factor have to be defined at first how it’s illustrated in an example for the POU
“MAIN” and an oversampling factor 10 with structured text (ST) as follows:
PROGRAM MAIN
VAR
aU1_Samples AT%I* : ARRAY[0..9] OF INT;
END_VAR
The identification “AT%I*” stands for swapping out this array variable to link it with the process data objects
(PDOs) of a terminal/box later. Notice that at least the number of elements has to be the same as the
oversampling factor so that the indices can be set from 0 to 9 also. As soon as the compiling procedure was
started and ended successful (in doing so no program code may be present) the array appears into the
solution explorer of the TwinCAT 3 development environment within the section PLC under “..Instance”.
The following illustration shows extracts of the solution explorer on the right. As an example that linking of an
array variable to a set of oversampling process data is represented herewith:
Содержание EL47 Series
Страница 1: ...Documentation EL47xx Analog output terminal with oversampling 2 7 2020 02 27 Version Date...
Страница 2: ......
Страница 33: ...Mounting and wiring EL47xx 33 Version 2 7 Fig 23 Other installation positions...
Страница 70: ...Commissioning EL47xx 70 Version 2 7 Fig 73 Incorrect driver settings for the Ethernet port...
Страница 81: ...Commissioning EL47xx 81 Version 2 7 Fig 92 EtherCAT terminal in the TwinCAT tree left TwinCAT 2 right TwinCAT 3...
Страница 144: ...Commissioning EL47xx 144 Version 2 7 Fig 178 Selecting the EL4732 terminal Fig 179 Terminal in the TwinCAT tree...
Страница 149: ...Commissioning EL47xx 149 Version 2 7 Fig 184 Process data tab SM1 EL47xx...
Страница 156: ...Commissioning EL47xx 156 Version 2 7 Fig 195 Process Data tab adaptation of process data in SM0...