SmartModule CR2520
26
Index
S-Idx
Name
Type
Default
Description
2001
0
PWM frequency binary outputs
rw
u8
0xFA (250 Hz) 20���250 Hz
PWM frequency for binary outputs 1…3
Chan 16, 17, 18
2002
0
number analog inputs
ro
u8
4
1
analogue input 1
ro
u16
-
depends on IO configuration
2
analogue input 2
ro
u16
-
depends on IO configuration
3
analogue input 3
ro
u16
-
depends on IO configuration
4
analogue input 4
ro
u16
-
depends on IO configuration
2010
0
PWM frequency H-bridges
rw
u8
0x64 (100 Hz) 20��250 Hz
PWM frequency for H bridges
Chan 23, 24, 25, 26
2012
0
number H-bridges
ro
u8
4
1
set value H-bridge 1
rw
u8
0
depends on configuration H-bridge 1
case binary output low/high side:
byte is divided in two nibbles L/R
0b xxxxL xxxR;
L = set value (0/1) left switches of bridge
R = set value (0/1) right switches of
bridge
case half bridge:
byte is divided in two nibbles L/R
0b xxxLL xxRR;
L = set value left switches of bridge
R = set value right switches of bridge
0 = OFF
1 = push high
2 = pull low
case H-bridge:
0 = OFF
1 = turn right
2 = turn left
3 = break; shorten via GND
2
set value H-bridge 2
rw
u8
0
see above
3
set value H-bridge 2
rw
u8
0
see above
4
set value H-bridge 2
rw
u8
0
see above
2013
0
number current sense chan
ro
u8
6
1
current sense chan 21
ro
u16
current value out 05 unscaled
2
current sense chan 22
ro
u16
current value out 06 unscaled
3
current sense chan 25
ro
u16
current value HB2 right unscaled
4
current sense chan 25
ro
u16
current value HB2 left unscaled
5
current sense chan 26
ro
u16
current value HB3 right unscaled
6
current sense chan 26
ro
u16
current value HB3 left unscaled