Parameter data block (byte 0 to 5 of the process image)
All AS-i parameters of the KL6201/KL6211 can be accessed via bytes 0 to 5 of the process image interface. The output and input data are then assigned as follows:
Output parameters (PLC -> KL6201/KL6211)
A new task is detected, if one of the bits in the 6-byte parameter data block has changed.
Byte | Bit | Description |
---|---|---|
0 (CB0) | 0 to 5 | Parameter number bit 0 to 5 |
6 | 0bin: Read 1bin: Write | |
7 | Always 0 (due to compatibility with register communication) | |
1 (CB1) | 0 to 3 | Parameter number bit 6 to 9 |
4 | Only relevant for write with masked access: | |
5 | Only relevant for write: | |
6 | 0bin: Parameter access is locked | |
7 | always 0 | |
2 (ParaOut0) | 0 to 7 | Read: free |
3 (ParaOut1) | 0 to 7 | Read: free |
4 (ParaOut2) | 0 to 7 | Read: free |
5 (ParaOut3) | 0 to 7 | Read: free |
Input parameters (KL6201/KL6211 -> PLC)
Byte | Bit | Description |
---|---|---|
0 (SB0) | 0 | Only relevant in protected mode: |
1 | 1bin: A power failure has occurred | |
2 | 1bin: automatic addressing is enabled (protected mode must be active)
| |
3 | 1bin: automatic addressing is available (protected mode must be active and precisely one projected AS-i slave must be missing) | |
4 | 1bin: an AS-i slave with address "0" was found | |
5 | reserved for extensions | |
6 | Diagnostic bit, 1bin:
| |
7 | always 0 (for compatibility with register communication) | |
1 (SB1) | 0 | 0bin: the AS-i master responds to a read command |
1 | 0bin: the AS-i master operates in projecting mode | |
2 | the AS-i master is set to offline phase (the outputs of the activated AS-i slaves are set to the default value (1bin), the inputs of the activated AS-i slaves in the controller were also set to the default value (0bin) | |
3 | 1bin: the AS-i master operates in normal mode (data exchange phase was reached, AS-i outputs and AS-i inputs have the current values) | |
4 | Toggle bit, this bit toggles after each executed task | |
5 | 0bin: Parameter access was completed successfully | |
6 | Acknowledges bit 6 of CB1: | |
7 | always 0bin | |
2 (ParaIn0) | 0 to 7 | Read (without error): Parameter value bits 0 to 7 |
3 (ParaIn1) | 0 to 7 | Read (without error): Parameter value bits 8 to 15 |
4 (ParaIn2) | 0 to 7 | Read (without error): Parameter value bits 16 to 23 |
5 (ParaIn3) | 0 to 7 | Read (without error): Parameter value bits 24 to 31 |