Here comes a short description of what needs to be done and tools to be used to make X2 control work together with one or several BFI-P2/E3 in a CANopen network: 1. Set up of Station number address and communication speed in each BFI 2.
CANopen communication to BFI-P2/E3 SER0016_V1.0.0 2021-03 5 Hardware The following chapter describes the ethernet connections of X2 control and BFI-P2/E3. CANopen port of X2 control Com, 9-pole D-sub, on X2 control contain one CANopen Network0 on pin1 and pin6. IP address setting in X2 control The setting of the Ethernet ports in X2 control is being done on the X2 control itself.
CANopen communication to BFI-P2/E3 SER0016_V1.0.0 2021-03 CANopen port of BFI CANopen port in BFI depends on model. It has either one or two RJ45 connector with pin configuration as in figure below. All BFI IP66 has two RJ45 connectors for incoming and outgoing network cabling. All BFI IP20 has one RJ45 for CANopen connection.
CANopen_Manager: 3.5.10.0 Baud rate: 500 kbits/sec Function Block X2_CANopen This function block is used to control and Read/Write Data Functionality with a BFI-P2/E3 by CANopen PLC Types X2 control (marine / extreme) or BoX2 pro (SC / motion) Version 1.0.0 Input_Output...
Page 8
CANopen communication to BFI-P2/E3 SER0016_V1.0.0 2021-03 Input Type Function i_Start BOOL Start of Drive. 0=>Stop 1=>Running. Direction decided by sign of Set frequency. i_FastStop BOOL 1 => Fast stop of motor with ramp in P2-25 for BFI-P2 and P-24 for BFI-E3.
CANopen communication to BFI-P2/E3 SER0016_V1.0.0 2021-03 Program example CODESYS, BCS Tools and iX Developer BFI and X2 control Start Up project is a very powerful tool providing a project starting point way beyond what would otherwise be possible. The project contains one HMI-screen to handle the BFI, start/stop, read/write parameters, read type of BFI, handling alarms.
Containing Function blocks, one FB for each BFI. Library Manager One of the libraries is X2 BFI-P2/E3 CANopen. Contains the FB to control BFI by CANopen. The FB is compiled and by that not possible to open up. Requires one FB per BFI.
CANopen communication to BFI-P2/E3 SER0016_V1.0.0 2021-03 In Folder General, set Enable Expert Settings In Folder General, set Optional Settings • Chose the new BFI below CANopen_Manager. In this example new BFI is number 4 In Folder CANopen I/O Mapping. Copy all variable names form BFI_1, rename 1 to 4 and paste into the new BFI.
CANopen communication to BFI-P2/E3 SER0016_V1.0.0 2021-03 CANopen setting in CODESYS/BCS Tools The setting of CANopen ports must also be done in CODESYS/BCS Tools, both for the Master and for all Slaves. Number of the CAN network to be linked via the CANbus interface.
Page 13
CANopen communication to BFI-P2/E3 SER0016_V1.0.0 2021-03 Start Slaves : The CANopen manager is responsible for starting the Slaves. : You must start the Slaves from the application, using the CiA405 NMT function block. NMT Error Behaviour Restart Slave. If an error occurs during Slave monitoring (NMT Error Event), then the Slave is restarted automatically by the stack (NMT Reset + SDO Configuration + NMT Start).
Page 14
CANopen communication to BFI-P2/E3 SER0016_V1.0.0 2021-03 The node number identifies the CAN module as unique and it corresponds to the number set on the module (value between 1 and 127). You provide the node ID as a decimal. Click this button to open a dialog for activating the SDO channels that are predefined in the EDS file.
Page 15
Note: When you insert a device with the heartbeat function, its heartbeat settings are harmonized automatically with the master (CANopen manager). : Check the vendor ID of the Slave at start up. Vendor ID for Beijer Electronics is 145. If not, corresponding communication will not start up.
Take control of the BFI from this menu. PLC-program is neglected. Start/stop- Coast- and Fast stop buttons. Frequency Setpoint. Acceleration/Deceleration Time to be used if P-12=4 in BFI-P2/E3. Parameter handling a. Parameter number to be either tapped in or Increase/Decrease buttons b.
- BFI-P2 Size4 to Size7: BFI-P2_Size4-7.eds The files are attached the program example but also available on www.beijerelectronics.com Parameter settings for CANopen in BFI-P2/E3 Set following parameters in BFI-E3 - P12=7. CANopen control with Acceleration and Deceleration time in parameter P-03 and P-04.
Page 18
CANopen communication to BFI-P2/E3 SER0016_V1.0.0 2021-03 If the BFI is to continue when communication interruption, set as below: 18 (25)
Check cabling of the network and splitters. Setting “Network”=0 in CANbus (CANbus)/General means CAN-H is Pin1 and CAN-L is Pin6. Termination resistor applied correctly in both end of network? Power turned on to BFI-P2/E3? Power on to X2 control? 19 (25)
Page 20
CANopen communication to BFI-P2/E3 SER0016_V1.0.0 2021-03 Software or settings P1-12 = 6 in BFI-P2 and P-12 = 7 or 8 in BFI-E3? Communication speed setting in each Slave corresponding to Master setting in CODESYS, P- 36 in BFI-E3 or P5-01 in BFI-P2?
Page 21
H 0.0 in display? Start signal arrived but no speed setpoint o Speed sent to BFI-P2/E3 must be a value between parameter value P1-01 and P1-02. o Speed into Function block is a REAL. Value 50.0 Hz means value 500 being sent to BFI-P2/E3 o Check that sent speed by bus corresponds with value in P0-07 in BFI-P2/E3.
CANopen communication to BFI-P2/E3 SER0016_V1.0.0 2021-03 9 CANopen data in BFI-P2/E3 Register Mapping CANopen Protocol Specification The tables below show the Index and Sub Index required to address each parameter. All User Adjustable parameters are accessible by CAN, except those that would directly affect the communications.
CANopen communication to BFI-P2/E3 SER0016_V1.0.0 2021-03 PDO transmission type Various transmission modes can be selected for each PDO. For RX PDO, the following modes are supported: Transmission Mode Description Type 0 – 240 Synchronous The received data will be transferred to the drive active control register when the next sync message is received.
Industrial Internet of Things, we empower you to meet your challenges through leading-edge solutions. Beijer Electronics is a Beijer Group company. Beijer Group has a sale over 1.6 billion SEK in 2019 and is listed on the NASDAQ OMX Nordic Stockholm Small Cap list under the ticker BELE.