FX2N-32DP-IF Profibus-DP Interface Unit
User Parameter 7
7-11
Read and Write Operation:
To execute both a read and a write operation at the same time, keep the following order:
a) Write the BFM number to read + MSB = 1 into “FROM ADDRESS”
b) Write the data to write into “TO DATA”
c) Write the BFM number to write to +MSB=1 into “TO ADDRESS”
If this procedure is performed, the “FROM DATA” is valid and the write operation is complete
when the read back values become the same as “TO DATA” and “TO ADDRESS”. Please
take care of the MSB of “TO ADDRESS” before writing new data into “TO DATA” (see Write
operation (TO)).
Ex- Profimap “Input CPU Device” = D0, “Output CPU Device” = D20
*1 This data resister is in 32DP-IF module.
To read BFM 5 of special function block 3 (FX
2N
-4AD in simple communication 3W-IF):
a) Write 8005hex (MSB=1 + BFM 5 address) to D28.
After 2
×
Profibus cycle time + 1
×
FX
2N
-32DP-IF cycle time (see D8010, D8011, D8012)
D4 will contain the value of BFM5.
b) Write 8005hex (MSB=1 + BFM 5 address) to D28. MSB of D30 must be 0.
If D6 = D28 the operation is complete and D4 contains the value of BFM5.
To set the number of samples for channel 2 (BFM2) of SFB 3 to the value 10:
Write first 10 to D29 then 8002hex (MSB = 1 + BFM 2 address) to D30. The write operation
has been completed successfully if D5 is the same as D29 and D6 the same as D30.
Table 7.10: Example Configuration
configuration
32DP-IF
FX
2N
-4DA
(Extension
Configuration)
FX
2N
-4DA
(Short
Configuration)
FX
2N
-4AD
(Short
Configuration)
FX
2N
-4AD
(Simple
Communication
3W-IF)
parameter size
2 byte
50 byte
11 byte
11 byte
4 byte
cyclic
read data
size
0 byte
0 byte
0 byte
8 byte
6 byte (3 words)
Data
register
*1
-
-
-
D0 ~ D3
D4 ~ D6
cyclic
written
data
size
0 byte
8 byte
8 byte
0 byte
6 byte (3 words)
Data
register
*1
-
D20 ~ D23
D24 ~ D27
-
D28 ~ D30
Содержание FX2N-32DP-IF
Страница 4: ...FX2N 32DP IF Profibus DP Interface Unit ii...
Страница 6: ...FX2N 32DP IF Profibus DP Interface Unit iv...
Страница 12: ...FX2N 32DP IF Profibus DP Interface Unit x...
Страница 64: ...FX2N 32DP IF Profibus DP Interface Unit Address Setting 6 6 2 MEMO...
Страница 78: ...FX2N 32DP IF Profibus DP Interface Unit User Parameter 7 7 14 MEMO...
Страница 80: ...FX2N 32DP IF Profibus DP Interface Unit Diagnostic Message 8 8 2 MEMO...
Страница 86: ...FX2N 32DP IF Profibus DP Interface Unit Diagnostics 9 9 6 MEMO...
Страница 92: ...FX2N 32DP IF Profibus DP Interface Unit Appendix A A 6 Figure A 6 Setting Global Parameter...
Страница 96: ...FX2N 32DP IF Profibus DP Interface Unit Appendix A A 10 MEMO...
Страница 102: ...FX2N 32DP IF Profibus DP Interface Unit Appendix B B 6 Figure B 6 Setting Global Parameter...
Страница 106: ...FX2N 32DP IF Profibus DP Interface Unit Appendix B B 10 MEMO...
Страница 192: ...FX2N 32DP IF Profibus DP Interface Unit Appendix C C 86 MEMO...
Страница 194: ...FX2N 32DP IF Profibus DP Interface Unit Appendix D D 2 MEMO...
Страница 197: ......