Generating the output file (#EXPORT VE)

The NC command #EXPORT VE [..] generates the required data structure for the V.E. variables for the channel in which the command is used.

With multi-channel systems, the NC command must be used in each channel in order to generate the data structure for the particular channel.

Notice

notice

The identifier <i> in the filename of the output file is a placeholder for the CNC channel number.

This is dependent on the corresponding write authorisations in each directory.

Notice

notice

The call of the CNC command #EXPORT VE absolutely requires the specification of the PLC destination system as parameter. The result is named accordingly.

An error message 20509 is output if the parameter is missing.

Programing Example

prg_example

Generate the output file

#EXPORT VE [3S] ;Generate V.E. PLC structure for 3S CODESYS

#EXPORT VE [KW] ; Generate V.E. PLC structure for MULTIPROG from KW

The command can be placed in an NC program or can be executed as a manual block. The command generates a file which is declared in a data structure compliant with IEC 61131-3 for all V.E variables created in the NC channel.

The generated file corresponds to the import/export format for the CODESYS or MULTIPROG development environments and can be imported there directly.

Notice

notice

Additional structure declarations are required in the output file.