Parameterization, Creation Of Coding, PSM, Function - GF54.21-D-3015P
MODEL 906 with CODE ED5 (Parameterizable special module (PSM)) with CODE XM0 (Facelift)
MODEL 906 with CODE ED8 (Preinstallation for parameterizable special module (PSM)) with CODE XM0 (Facelift)
Procedure
The following pages explain the three-step coding procedure, taking the function "Actuation of high beams via discrete inputs" as an example.
In order to achieve as efficient coding as possible, we recommend adhering to this procedure.
The high beams are to be switched on if a signal with "HIGH level" is applied either at discrete inputs 01 and 04 (exclusive OR) or at discrete inputs 02 and 03 (see the truth table).
Example
| Input 01 | Input 02 | Input 03 | Input 04 | High beam |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | Off |
| 0 | 0 | 0 | 1 | Off |
| 0 | 0 | 1 | 0 | Off |
| 0 | 0 | 1 | 1 | Off |
| 0 | 1 | 0 | 0 | Off |
| 0 | 1 | 0 | 1 | Off |
| 0 | 1 | 1 | 0 | On |
| 0 | 1 | 1 | 1 | On |
| 1 | 0 | 0 | 0 | Off |
| 1 | 0 | 0 | 1 | On |
| 1 | 0 | 1 | 0 | Off |
| 1 | 0 | 1 | 1 | On |
| 1 | 1 | 0 | 0 | Off |
| 1 | 1 | 0 | 1 | On |
| 1 | 1 | 1 | 0 | On |
| 1 | 1 | 1 | 1 | Off |
Step 1 - Sketching function
First of all, a sketch with a logic block and the following inputs and outputs must be made for the application example:
- "Switch on high beams" at the non-inverted output
- AND combination in sub-block X
- AND combination in sub-block Y
- XOR combination in sub-block Z
- Discrete input 01 at input 1 of logic block
- Discrete input 04 at input 2 of logic block
- Discrete input 02 at input 3 of logic block
- Discrete input 03 at input 4 of logic block
Discrete input 04 is low active.
Circuit 31 must be switched to the input for a "HIGH level" to be present to the active input on the logic block.
Step 2 - Coding function
The "Advanced coding" function of the PSM control unit in XENTRY Diagnostics (XD) is accessed as follows:
- Tab "Adaptations"
- Menu item "Configuration → Manual settings → Advanced coding"
See "Menu guidance in XD" in the document "Parameterization/coding of PSM function in XD".
There are various approaches for the sequence in which parameterization can be performed. The following steps are performed in sequence in the following description:
- Configure module "Programmable logic controller": Logic block 1 from PLC group 1 should be used. PLC group 1 must therefore be activated.
- Configure logic block:
- 2.1 Define the function of logic gates X, Y and Z via the "Module" button
- 2.2 Assign a signal to the respective input of the logic block via buttons "Input < NUMBER >" and, if necessary, apply further settings to the input.
- Configure input of module "Interior CAN": The matching input of module "Interior CAN" is linked to the output of the logic block here.
- Perform control unit reset so that changes are applied
- 1 Configure module "Programmable logic controller"
PLC group 1 must be activated via menu item "Programmable logic controller - Activation of PLC groups" because logic block 1 from this PLC group is to be used for this example.
The settings made can be written to the PSM control unit via the button "Apply changes". After writing the coding, the current configuration of PLC groups is displayed. Exit the screen via the "Next" button.
Logic block 1 can now be configured.
- 2a Configure logic block: Define function of internal logic gates
This example will use logic block 1 from PLC group 1 to implement the desired function. To do so, select menu item "Programmable logic controller - PLC Group1 - Logic block1".
The function of logic gates X, Y and Z can be defined via the "Module" button. The logic gates should contain the following functions:
Logic gate Function X AND Y AND Z XOR The settings made can be written to the PSM control unit via the button "Apply changes". After writing the coding, the current configuration of logic block 1 is displayed. In the next step, the inputs of logic block 1 are parameterized.
- 2b Configure logic block: Parameterize inputs of logic block
After pressing button "Input 01", an input screen appears in which a signal can be assigned to input 1 of logic block 1. It is possible either to directly enter the corresponding signal ID into the input window or make a selection via the "Signal list" button.
For this example, signal ID "1013" (Input 01 (high-ACTIVE)) can be entered directly into the input field for control unit input 1.
It is possible to change from diagnosis view to information view at any time via the book symbol. The signal list is contained in the information and can thus be displayed at any time. To do so, select menu item "Information - Control unit help - Signal list".
There are various selection boxes under "Parameters" underneath the input window. The selection boxes can be used to apply further settings to input 1 if necessary. It would be possible, for example, to invert the selected signal using parameter "Inversion of signal". However, for this example no further settings are required on input 1 and all selection boxes therefore remain deactivated (unchecked). After pressing the "Next" button, the current configuration of the logic block is displayed.
The other three inputs of logic block 1 are configured in the same way via buttons "Input 02", "Input 03" and "Input 04". The following signal IDs should be assigned to the respective inputs of logic block 1:
Logic block 1, input < NR > Signal ID Signal description 1 1013 (Input 01 (high active)) 2 1010 (Input 04 (low active)) 3 1014 (Input 02 (high active)) 4 1015 (Input 03 (high active)) No further settings are required for inputs 2, 3 and 4 of logic block 1 either and the selection boxes for the respective inputs remain deactivated under "Parameters".
After configuration of all four inputs of logic block 1, the settings made can be written to the PSM control unit via the "Next" button.
- 3 Configure input of module "Interior CAN":
For the "Interior CAN" module to place the request "Switch on high beams" on the interior CAN, the signal ID of the output of logic block 1, PLC group 1 must be assigned to the associated input of the module. Configuration of the inputs of module "Interior CAN" can be carried out via menu item: "Interfaces → Interior CAN bus → Lights and horn → Signals". A screen appears after selection of the menu item. The input "Switch on high beams" should be selected via the "Input" list box.
It is now possible to assign the signal ID 10F8 (PLC output: group 1, logic block 1) to this input using the "Signals" button.
Input of interior CAN module Signal ID Signal description Switch-on of high beams 10F8 (PLC output: Group 1, logic block 1) There is a further setting option for the input under "Parameters" under the list box. For the high beams to remain switched on, in this example, for as long as the conditions of the truth table are fulfilled, the selection box for the parameter "Edge-controlled evaluation of signal (otherwise state-controlled" must be checked.
After pressing the "Next" button, the current configuration of the inputs of module "Interior CAN" is displayed.
It is then possible to write the settings made to the PSM control unit via the "Next" button.
Configuration of the module "Interior CAN" can be carried out via menu item "Interfaces → Interior CAN bus → Lights and horn → Properties". Here it is possible to adjust the settings of the "Turn signal indicator" function. However, this is not necessary for this example.
- 4 Carry out control unit reset
A control unit reset of the PSM is necessary for the changes to be applied. The menu item "Control unit reset" can be selected to perform the control unit reset.
It is possible to check for proper operation e.g. using menu item "Display of signal values", whereby the contents of the signals used for switching the control unit inputs are displayed.
Step 3 - Completing function
The coding is now completed and can be tested.
| Parameterizable special module (PSM) control unit component description | GF54.21-D-5005P |