Content 1. Introduction 2. Preparation of the PN/CAN Gateway 3. Configure PN/CAN Gateway 4. PN/CAN Gateway settings 5. Adding CAN frame 6. Assign the PN/CAN Gateway a PROFINET name 7. Programming in the PLC 8. LED status information 9. Technical data Quick Start Guide PN/CAN Gateway Layer 2...
The PN/CAN Gateway is supplied via the 3-pin connection plugs with 24 V DC voltage. The CAN bus is connected to the „CAN“ interface using a SUB-D plug (e.g. Helmholz CAN bus plug). The PROFINET line is connected to X1/P1 or X1/P2.
After installing the GSDML file, the PN/CAN Gateway Layer 2 can be found in the hardware catalog under „PROFINET IO -> Other field devices -> Gateway -> Helmholz PN/CAN Gateways“. Add the „PN/CAN Gateway L2“ to the project and connect it with your PROFINET network.
4. PN/CAN Gateway settings The first slot entry after the ports is the slot for the parameters. Set the CAN bit rate and the type of CAN identifier (11 bit or 29 bit). The importance of the additional parameters can be derived from the manual and have no relevance for standard applications.
5. Adding CAN frame The PN/CAN Gateway Layer 2 can transmit and receive CAN frames with 1 to 8 bytes of data and any CAN-IDs. A module with the CAN identifier must be configured in the slots of the PN/CAN Gateway for each anticipated CAN frame and each CAN frame to be transmitted.
Page 7
5.1 Automatically receiving CAN frames In the case of the automatic reception of CAN frames, the data of the most recently received CAN frame is always found in the input data. Each configured CAN frame has a unique CAN identifier. If two reception objects with the same CAN identifier are being configured, that results in a configuration error.
Page 8
5.2 Automatically transmitting CAN frames In the case of automatic transmission of a CAN frame, a frame is always sent to the CAN bus when the output data of the module changes. Each configured CAN frame has a unique CAN identifier. If two transmission objects with the same CAN identifier are being configured, that results in a configuration error.
Page 9
5.3 Controlled receiving of CAN frames In the case of the controlled reception of CAN frames, the reception of each frame must be acknowledged in the PLC program. In the case of controlled reception, CAN frames with a fixed data length of 0 to 8 bytes can be configured.
Page 10
5.4 Controlled transmission of CAN frames In the case of controlled transmission of a CAN frame, the PLC can directly trigger the transmission of a CAN frame through a control bit, irrespective of whether the transmission data has changed. In the case of controlled transmission, CAN frames with a fixed data length of 0 to 8 bytes can be configured.
6. Assign the PN/CAN Gateway a PROFINET name When the configuration of the PN/CAN Gateway has been completed in the hard- ware configurator, it can be loaded into the PLC. In order that the PN/CAN Gateway can be found on the PROFINET by the PROFINET master (controller), the PROFINET name and possibly the IP address must be set.
7. Programming in the PLC No handling blocks for simple operation are required in the PLC. The control and status query of the PN/CAN Gateway can be carried out directly via the I/O map. In order to start up the example project, the value 3 must be written into the „Con- trol“...
Page 13
7.2 Status (6 bytes inputs) Byte/Bit In 0 1= Gateway 1 = Reset carried – – – – – – ready In 1 Error code for configuration errors Mode State In 2 CAN receive error counter In 3 CAN transmit error counter In 4+5 First slot with configuration error The two mode state bits show the status of the PN/CAN Gateway.
Page 14
7.3 Controlled receiving of CAN frames In the PLC, every controlled reception object has a status and a control byte in addi- tion to the CAN data: Byte/Bit In 0 – – – – – – 1 = Overrun Indication toggle bit of new frame In 1–n...
Page 15
7.4 Controlled transmission of CAN frames In the PLC, every controlled transmission object has a status and a control byte in addition to the CAN data: Byte/Bit In 0 – – – – – – – Transmit Acknowledge Byte/Bit Out 0 –...
8. LED status information MODE No power supply or device defective Blue on PN/CAN Gateway is correctly configured via PROFINET Mode 3: Transmitting and receiving active Flashing blue PN/CAN Gateway is correctly configured via PROFINET Mode 0, 1 or 2 Flashing red No connection with PROFINET controller (PLC) or a confi- guration error exists...
9. Technical data Order no. 700-671-PNC01 PROFINET Interface - Protocol PROFINET IO as defined in IEC 61158-6-10 - Transmission rate 100 Mbit/s full duplex - I/O image size 1440 bytes - Number of configurable slots - Connection 2 x RJ45, integrated switch...
Page 20
Our customers are important to us. We are pleased to receive suggestions for improvement and new impulses. 1) SIMATIC is a registered trademark of Siemens AG. Helmholz GmbH & Co. KG | Hannberger Weg 2 | 91091 Großenseebach | Germany | Phone +49 9135 7380-0 | Fax +49 9135 7380-110 | info@helmholz.de | www.helmholz.de...
Need help?
Do you have a question about the 700-671-PNC01 and is the answer not in the manual?
Questions and answers