Function Blocks PSx-3__-PN
12
SFC14 (“DPRD_DAT”)
SFC15 (“DPWR_DAT”)
SFC20 (“BLK_MOV”)
FB110 (“MC_Move”)
FB111 (“MC_Error”)
FB112 (“MC_ReadParameter”)
FB113 (“MC_WriteParameter”)
When using one of the library versions for Step 7 TIA V13 + V14:
Copy into
“Program blocks” of the desired CPU:
Data type DRIVE_DATA
Data type DT_LIB_IN/OUT
Function block LIB_IN/OUT
FB110 (“MC_Move”)
FB111 (“MC_Error”)
FB112 (“MC_ReadParameter”)
FB113 (“MC_WriteParameter”)
In the next step according chapter 5.3 we generate the following instance data blocks:
three instance data blocks of the type
FB110 (“MC_Move”), e.g.
- DB1101, symbolic name
= “PSE_1_FB110”
- DB1102, symbolic name
= “PSE_2_FB110”
- DB1103, symbolic name
= “PSE_3_FB110”
three instance data blocks of the type
FB111 (“MC_Error”), e.g.
- DB1111, symbolic name
= “PSE_1_FB111”
- DB1112, symbolic name
= “PSE_2_FB111”
- DB1113, symbolic name
= “PSE_3_FB111”
three instance data blocks of the type
FB112 (“MC_ReadParameter”), e.g.
- DB1121, symbolic name
= “PSE_1_FB112”
- DB1122, symbolic name
= “PSE_2_FB112”
- DB1123, symbolic name
= “PSE_3_FB112”
three instance data blocks of the type
FB113 (“MC_WriteParameter”), e.g.
- DB1131, symbolic name
= “PSE_1_FB113”
- DB1132, symbolic name
= “PSE_2_FB113”
- DB1133, symbolic name
= “PSE_3_FB113”
After that according chapter 5
.4 we generate another data block of the type “global” with the
name DB1000. In that data block we generate three v
ariables of the type “DRIVE_DATA”, e.g.
with the following identifiers:
“PSE_1”
“PSE_2”
“PSE_3”
Additionally there we generate those variables which control the particular blocks, e.g.:
“PSE_1_Move_DINT_TargetPosition”,
“PSE_2_Move_DINT_TargetPosition”,
“PSE_1_Read_BOOL_Execute”,
“PSE_2_Read_BOOL_Execute”,