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 />

cyclic – synchronous: the PDO will be transmitted synchronously, whereby the Number of Sync's gives the<br />

number of synchronisation messages, which lie between two transmissions of this PDO.<br />

synchronous – RTR only: the PDO will be updated after each synchronisation message but not sent. It is<br />

only sent when there is an explicit request to do so (Remote Transmission Request)<br />

asynchronous – RTR only: the PDO will only be updated and transmitted when there is an explicit request to<br />

do so (Remote Transmission Request)<br />

asynchronous – device profile specific and asynchronous - manufacturer specific: the PDO will only be<br />

transmitted when specific events occur.<br />

Number of Syncs: If cyclic transmission has been set, enter here the number of synchronisation<br />

messages (see 'Com. Cycle period' in the CAN parameter dialog) which should be sent between two<br />

transmissions of the PDO.<br />

Event-Time: If an corresponding transmission type is set, enter here in milliseconds (ms) the interval<br />

between two transmissions.<br />

Service Data Objects<br />

Here you find a list of all objects in the EDS or DCF file which are in the area of the Index 0x2000 to<br />

0x9FFF and which are marked as writable.<br />

Dialog for configuration of the Service Data Objects (SDO)<br />

The properties Index, Name, Value, Type and Default are displayed for every object. The value can<br />

be changed. Mark the value and press the . After making the change confirm the new<br />

value with or reject it with the key.<br />

The set values are transmitted in the form of SDO's (Service Data Object) to the CAN modules at the<br />

initialisation of the CAN bus.<br />

Note: All incompatible data types between CANopen and IEC-61131 will be replaced in CoDeSys by the next<br />

larger IEC-61131 data type.<br />

6.5.8 Configuration of a CanDevice (CANopen Slave)<br />

A <strong>PLC</strong> which is programmable with CoDeSys can be used as a CANopen Slave (CANopen-Node,<br />

called "CanDevice" in the following) in a CAN network.<br />

For this purpose the <strong>PLC</strong> can be configured in the CoDeSys <strong>PLC</strong> Configurator and the configuration<br />

can be saved in an EDS-file. This EDS-file (device file) later can be used in any CANopen Master<br />

configuration.<br />

Preconditions for creating a CanDevice in the CoDeSys <strong>PLC</strong> Configurator:<br />

1. The libraries<br />

• 3S_CanDrv.lib<br />

• 3S_CanOpenManager.lib<br />

• 3S_CanOpenDevice.lib<br />

6-30 CoDeSys V2.3

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

Saved successfully!

Ooh no, something went wrong!