SWCNFG
ASCII - Command | SWCNFG |
|
| |
Syntax Transmit | SWCNFG [Data] |
| ||
Syntax Receive | SWCNFG <Data> | Available in |
| |
Type | Variable rw | MMI | Yes | |
ASCII Format | Unsigned16 | CANBus Object Number | 3600 (hex) | |
DIM | - | PROFIBUS PNU | 1856 (dec) IND = 0000xxxx (bin) | |
Range | 0 .. 65536 | DPR | 256 (dec) | |
Default | 0 |
| ||
Opmode | All | Data Type Bus/DPR | Unsigned16 | |
Drive State | Disabled + Reset (Coldstart) | Weightning |
| |
Start Firmware | 1.30 |
| ||
Configuration | Yes | Revision | 1.3 | |
Function Group | Position Controller | EEPROM | Yes | |
Short Description | Configuration of Position Registers 1 ... 4 |
Description
6 position registers (SWE0 ... SWE5) are available for monitoring functions, that can be configured as software limit-switches or cam contacts (position switches).
Registers SWE1 ... SWE4 can be configured with the help of the SWCNFG configuration parameter.
Registers SWE0 and SWE5 can be configured with the help of the SWCNFG2 parameter.
A corresponding cam register SWExN is assigned to each position register SWEx.
The cam registers are only used if the cam function is activated.
The SWCNFG variable can be considered as a bit-variable. The individual bits are interpreted as follows:
- Bit 0 =0 Position/cam register SWE1 is not active
- =1 Position/cam register SWE1 is active
- Bit 1 =0 Signal on going above the position (PFB > SWE1) Signal if SWE1 < PFB < SWE1N and cam function is activated
- =1 Signal on going below the position (PFB < SWE1) Signal if SWE1 > PFB > SWE1N and cam function is activated
- Bit 2 =0 SWE1 functions as signal threshold
- =1 SWE1 functions as software limit-switch 1 (left)
- Bit 3 =1 Cam function for SWE1 / SWE1N
- Bit 4 =0 Position/cam register SWE2 is not active
- =1 Position/cam register SWE2 is active
- Bit 5 =0 Signal on going above the position (PFB > SWE2) Signal if SWE2 < PFB < SWE2N and cam function is activated
- =1 Signal on going below the position (PFB < SWE2) Signal if SWE2 > PFB > SWE2N and cam function is activated
- Bit 6 =0 SWE2 functions as signal threshold
- =2 SWE2 functions as software limit-switch 2 (right)
- Bit 7 =1 Cam function for SWE2 / SWE2N
- Bit 8 =0 Position/cam register SWE3 is not active
- =1 Position/cam register SWE3 is active
- Bit 9 =0 Signal on going above the position (PFB > SWE3) Signal if SWE3 < PFB < SWE3N and cam function is activated
- =1 Signal on going below the position (PFB < SWE3) Signal if SWE3 > PFB > SWE3N and cam function is activated
- Bit 10 Reserve
- Bit 11 =1 Cam function for SWE3 / SWE3N
- Bit 12 =0 Position/cam register SWE4 is not active
- =1 Position/cam register SWE4 is active
- Bit 13 =0 Signal on going above the position (PFB > SWE4) Signal if SWE4 < PFB < SWE4N and cam function is activated
- =1 Signal on going below the position (PFB < SWE4) Signal if SWE4 > PFB > SWE4N and cam function is activated
- Bit 14 Reserve
- Bit 15 =1 Cam function for SWE4 / SWE4N
The cam function is activated with the help of the cam bits (bits 3/7/11/15 of SWCNFG and bits 3/7 of SWCNFG2).
If a cam bit is set, a cam signal is generated if the actual position lies between the positions SWEx and SWExN
(x = 0 ... 5). The polarity of the cam signal can be defined by the direction bit (bits 1/5/9/13 of SWCNFG and bits 1/5 of SWCNFG2).
Output of the position signal through a digital output.
- If an I/O-expansion card (slot card) is available, the individual position signals are generated at the following outputs.
- SWE0: Next-InPos X11B.4
- SWE1: PosReg1 X11B.6
- SWE2: PosReg2 X11B.7
- SWE3: PosReg3 X11B.8
- SWE4: PosReg4 X11B.9
- SWE5: Reserve X11B.10
The Next-InPos and SWE0-signal functions use the same output X11B.4, so they must not be used simultaneously. If position register SWE0 has been configured, then the Next-InPos function is inhibited through the I/O card. If necessary, this function can be diverted to a digital output on the motherboard (O1MODE=16 or O2MODE=16).
- - if no I/O card is available, then the individual position signals can be given out through the outputs on the motherboard.
- SWE0: OxMODE=28 x=1,2
- SWE1: OxMODE=12 x=1,2
- SWE2: OxMODE=13 x=1,2
- SWE3: OxMODE=14 x=1,2
- SWE4: OxMODE=15 x=1,2
- SWE5: OxMODE=29 x=1,2
All position signals are recorded in a status register, regardless of the outputs via the digital outputs, and can be read out through the serial interface as well as through the CAN/PROFIBUS interface.
- SWE0: Bit 21 (0x00200000) of DRVSTAT
- SWE1: Bit 22 (0x00400000) of DRVSTAT
- SWE2: Bit 23 (0x00800000) of DRVSTAT
- SWE3: Bit 24 (0x01000000) of DRVSTAT
- SWE4: Bit 25 (0x02000000) of DRVSTAT
- SWE5: Bit 27 (0x08000000) of DRVSTAT