PSM Arithmetic, Example Of PSM Function - GF54.21-D-3055-01TSD
Model 907
with code ED5 (Parameterisable special module)
Terminal 58D, comparison block
Function blocks for terminal 58D
The circuit 58D (interior CAN (CAN B): "SwillLvl") CAN be output at one of the pulse width modulation-capable outputs.
| Value range | 0...100 % |
| Frequency | 500 Hz |
The terminal 58D function is realized through the group of programmable logic controller (PLC), arithmetic unit and multifunction output blocks. The picture shows the simplified function block operation. The configuration is available in the tables.
Function description of implementation
Comparator 1, calculation step 1 (Comp 1):
- Limit valid value range of input signal to 0 to 100 %, for values over 100 a 0 is issued as a result.
Calculation block 1, calculation step 2 (Calc 1):
- Calculate duty cycle.
Multifunction output block (MFA 6):
- Outputs the pulse width modulation (PWM) value at the output.
Signal identification number = Signal ID.
The signal IDs are notated in hexadecimal form.
ARITHMETIC UNIT COMPARATOR 1, CALCULATION STEP 1 (COMP 1) CONFIGURATION
| Input | Signal name | Signal ID | Compare operation |
|---|---|---|---|
| Compare_1_a | Out_AU_Const_2 | 0x8041 | Input a ≥ Input b |
| Compare_1_b | SwillLvl | 0x2022 | |
| Compare_1_c | SwillLvl | 0x2022 | |
| Compare_1_d | Const_Bit_0 | 0x1000 |
ARITHMETIC UNIT CALCULATION BLOCK 1, CALCULATION STEP 2 (CALC 1) CONFIGURATION
| Input | Signal name | Signal ID | Upper limit value | Lower limit value |
|---|---|---|---|---|
| Calc 1 a | Out_AU_Compare_1 | 0x8024 | 10 000 | 0 |
| Calc_1_m1 | Out_AU_Const_2 | 0x8041 | ||
| Calc_1_m2 | Const_Bit_1 | 0x1001 | ||
| Calc_1_d | Const_Bit_0 | 0x1000 |
ARITHMETIC UNIT CONSTANTS KB_1 CONFIGURATION
| Constants | Arithmetic unit | Meaning |
|---|---|---|
| Constants 1 | 5000 | Frequency |
| Constant speed gear 2 | 100 | Valid maximum value from interior CAN (CAN B) signal |
MULTIFUNCTION OUTPUT BLOCK CONFIGURATION
| MFA 6, 1A high-side, PWM | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | F13 | F14 | F15 | F16 | Signal name | Signal ID | Multifunction output block | - | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MFA6_Input1 (active) | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | Out_AU_Calc_1 | 0x8000 | - | Model | Output (1) |
| MFA6_Input2 (const/puls) | Const_Bit_0 | 0x1000 | Reactivation attempts | 1 | |||||||||||||||||
| MFA6 Input3 (CutOffReset) | Term15_Actv | 0x1219 | PWM type | Frequency (0) | |||||||||||||||||
| MFA6_Input4 (cycle time) | Const_Bit_0 | 0x1000 | - | ||||||||||||||||||
| MFA6_Input5 (pulse time) | Const_Bit_0 | 0x1000 | |||||||||||||||||||
| MFA6_Input6 (PWM active) | Out_AU_Calc_1 | 0x8000 | |||||||||||||||||||
| MFA6_Input7 (PWM period) | Out_AU_Const_1 | 0x8040 | |||||||||||||||||||
| MFA6 Input8 (PWM duty) | Out_AU_Calc_1 | 0x8000 | |||||||||||||||||||