Mitsubishi FX2N-32DP-IF User Manual page 75

Melsec fx series
Hide thumbs Also See for FX2N-32DP-IF:
Table of Contents

Advertisement

FX2N-32DP-IF Profibus-DP Interface Unit
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
Table 7.10: Example Configuration
configuration
parameter size
size
cyclic
Data
read data
register
size
cyclic
written
Data
data
register
*1 This data resister is in 32DP-IF module.
To read BFM 5 of special function block 3 (FX
a) Write 8005hex (MSB=1 + BFM 5 address) to D28.
After 2 × Profibus cycle time + 1 × FX
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.
FX
-4DA
2N
32DP-IF
(Extension
Configuration)
2 byte
50 byte
0 byte
0 byte
-
-
*1
0 byte
8 byte
-
D20 ~ D23
*1
FX
-4DA
2N
(Short
Configuration)
Configuration)
11 byte
0 byte
-
8 byte
D24 ~ D27
-4AD in simple communication 3W-IF):
2N
-32DP-IF cycle time (see D8010, D8011, D8012)
2N
User Parameter 7
FX
2N
FX
-4AD
2N
(Simple
(Short
Communication
3W-IF)
11 byte
4 byte
8 byte
6 byte (3 words)
D0 ~ D3
D4 ~ D6
0 byte
6 byte (3 words)
-
D28 ~ D30
7-11
-4AD

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx2n-32dp-if-d

Table of Contents