6 - 3 - 4 Copying Device Variables of I/O Map The NJ projects in the sample project file read and write the I/O state of the subject unit for operation. Thus, it is necessary to register device variables for the I/O of the units that have been specified in the unit setting process described above. Since the device variables are already registered in the NJ projects in the sample project file, you can copy the settings to the user project. Additional Information Where you make a mistake in copying device variables and attempt to try again, simple deletion of the device variables of the I/O map will leave the variables created on the global variable table as they are.
Retry of copy will thus be failed. In such a case, right-click on a device variable of the I/O map, and then select [Delete Variable]. 6 - 3 - 5 Copying Data Types In the NJ projects in the sample project, some data types are defined for the global variables required to interface with NA. Copy all the information to the user project. 6 - 3 - 6 Copying Global Variables In the NJ projects in the sample project file, the global variables required to interface with NA are declared. Copy all the information to the user project.
Note at this point that, by the aforementioned process of copying device variables of the I/O map, the device variables that are registered in the I/O map are registered as the global variables. Thus, the global variables other than the device variables registered in the I/O map need to be copied. In the NJ projects in the sample project file, the device variables registered in the I/O map are given the names starting with “WC1_UIO_”. Sort the variables on the global variable table, and copy the variables with the names starting other than the above prefix. 23