Fieldbus connection for CANopen CX1500-FB510

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.

 b_device_scan

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".

 b_baudrate

The hierarchical tree with the found devices is displayed after the bus scan.

 b_device_box

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:

 b_var_insert

Select  "Insert Variable". A dialog box opens to insert parameters for the variable.

 b_var_mask

 

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.

 b_mapping

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.