140 ADL300 • Appendix
– Example : RPDO1 di 2 word and RPDO2 di 2 word:
Fieldbus M->S1 dest = Ramp ref 1 src
Fieldbus M->S1 sys = EU
Fieldbus M->S2 dest = Word decomp src
Fieldbus M->S2 sys = Count 16
Fieldbus M->S3 dest = None
Fieldbus M->S3 sys = Count 32
Fieldbus M->S4 dest = Compare 1 src
Fieldbus M->S4 sys = Count32
Fieldbus M->S5 sys = Not Assigned
1.3.2 PDC Output Conguration (FB XXX SM Parameter)
Data exchanged in RPDOs are congured using the parameters in the COMMUNICATION->FIELDBUS S2M menu (refer
to the drive manual).
Data mapping in PDOs is performed on the basis of the data format set in Fieldbus M->Sn sys according to the following
rules:
– PDOs are lled starting from TPDO1
– When the PDO contains 4 words it is full and the next TPDO is lled with a maximum of 4 PDOs.
– 32-bit data (long or oat) cannot be split among PDOs, they must be placed inside the PDO (an alarm is generated).
– PDOs with fewer than 4 words can be created, using Fieldbus S->Mn src= None Used but assigned (Fieldbus M-
>Sn sys other than Not Assigned, Fill16 or Fill32) after an assigned datum.
– At the rst Fieldbus S->Mn sys = Not Assigned parameter the PDOs are complete. The size of the last PDO thus
depends on the data that have been assigned.
1.3.3 Use of the PDC in MDPlc Applications
It is possible to congure both the PDC input and output data in order to allow the data direct access via the MDPlc ap-
plication code.
For read data simply set Fieldbus M->Sn sys to MDPLC16 or MDPLC32, leaving Fieldbus M->Sn dest = None.
The MDPLC application can now read the incoming datum directly from the Fieldbus M->Sn mon parameter.
Write data are congured by setting Fieldbus S->Mn src = Dig Fieldbus S->Mn.
Fieldbus S->Mn sys is automatically set to MDPLC. The application writes the datum in the Dig Fieldbus S->Mn param-
eter to send it to the bus.
1.4 SDO management
The SDO service is always available.
The drive parameters can be accessed via the “MSPA” Manufacturer Specic Prole Area (2000hex< index <5FFFhex).
The index to be shown in the SDO command to access a drive parameter is obtained via the following rules:
SDO index = PAR + 2000h
SDO subindex = 1
The Data eld must contain the value of the drive parameter.
Example:
Writing the value 1m/s in the PAR 11020 Multi speed 0 (2B0C hex).
The following information is required:
1) The SDO index resulting from the formula is
2000hex + 258hex = 2258h
2) The value to be written is 1, corresponding to 1 hex.
3) Parameter writing code = 22h
4) Parameter reading code = 40h
5) Sub-index = 01h
The ipaCan parameter and relative value is written by rst inserting the lower part of the address in hexadecimal and then
the higher part (Value to be written LL-LH-HL-HH).