Startup of CX1500-B310 for CANopen
The module CX1500-B310 (salve connection for Profibus) can, as all other modules of the CX-system, be accessed via the TwinCAT System Manager. The user selects the desired system and search for units in the System Manager (click with right button on I/O Units - this operation is only available in config-mode) After some seconds the connected units are listed. The user selects the devices he / she wants to make use of in the program.
Next the scan for boxes is questioned. Answering with "yes" opens the following dialog. Before the CANopen bus can be scanned for other devices the baud rate must be selected. The transfer speed depends on the net topology. Details are described in the chapter "wires and installation".
The hierarchical tree with the found devices is displayed after the bus scan.
Below the box for the CANopen-Slave CX1500-B510 a status input shows the NodeState. Via this signal the PLC program can read the NodeState of the slave box. There are also four Process-Data-Objects (PDO) instanced: two for data output (TxPDO n) and two for data input (RxPDO n). Here the process variables can be inserted. To do so the user have to click on the input / output with the right mouse button. The following menu opens:
Select "Insert Variable". A dialog box opens to insert parameters for the variable.
The field "Name" defines the name for the variable. Start address can be used to define an address in the I/O area. In this way wanted overlays can be realized. The type of the variable will be set under "Variable Type". The sorting help make easier to find the desired variable. Click "OK" to accept settings.
If the process image of the PLC program is loaded the signals can be mapped to the variables (double click on the signal, see details in TwinCAT manual)
The mapped signals/variables are shown by a little arrow on the signal icon. If all signals and variables are mapped the configuration can be uploaded to the CX-System. The program will be loaded and started with the PCL control.