24.01.2015 Views

PLC Programming

  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PLC</strong> Configuration<br />

6.5.7 Configuration of CAN modules<br />

CoDeSys supports a hardware configuration according to CANopen Draft Standard 301. The<br />

configuration looks like that described for the hardware dependant configuration.<br />

All EDS (Electronic Data Sheet) respectively DCF (Device Configuration File) files which are stored in<br />

the subdirectory <strong>PLC</strong>CONF of the library when CoDeSys is started, can be integrated, edited and<br />

displayed in the configuration. In the EDS file the configuration options of a CAN module are<br />

described. If you add a module, which is described in a DCF file, only the IEC addresses can be<br />

modified, for the module has already been configured completely in a CAN configurator.<br />

Base parameters of a CAN Master<br />

For information on Modul-Id, Eingabe-/Ausgabeadressen, Diagnosis address see Chapter 6.5.4',<br />

Base parameters of an I/O module'.<br />

CAN Parameters of a CAN Master<br />

CAN Parameter Dialog for a CAN-Master<br />

The properties for transmission on the CAN bus can be set directly after the insertion of the module or<br />

can be called up with the command ’Extras’ ‘Properties’ .<br />

Using the selection option, set the required Baud rate which the transmission should take place at.<br />

One differentiates between synchronous and asynchronous transmission modes (see PDO<br />

properties) for PDO’s (Process Data Object). The synchronisation message is sent with a unique<br />

number Sync.COB-Id (Communication Object Identifier) in the interval in microseconds which is given<br />

by the Communication Cycle Period. The synchronous PDO’s are transmitted directly after the<br />

synchronisation message in the time window (Sync.Window Length in microseconds). No<br />

synchronisation message will be sent if the fields Comm. Cycle Period and Sync. Window Length<br />

contain 0.<br />

activate: Only if this option is activated synchronization messages will be transmitted between master<br />

and slaves.<br />

NodeID: serves to identify the CAN module uniquely and corresponds to the set number on the<br />

module itself which is between 1 and 127. The Id must be entered as a decimal number. ( Do not mix<br />

up with the 'Node number' !)<br />

6-26 CoDeSys V2.3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!