Manual VIPA System 300V
Chapter 6 Analog Input Modules
HB130E - SM - Rev. 07/44
6-5
By using the SFCs 55, 56 and 57 you may change the parameters of the
analog modules during runtime via the CPU. The time needed until the new
parameterization is valid can last up to a few ms. During this time the
measuring value 7FFFh is issued.
The following example shows the assignment of record set 1 to the module
331-7Kx01 during run time.
Record set 1 from module 331-7Kx01:
Byte Bit 7 ... Bit 0
0
Bit 5 ... 0: reserved
Bit 6: Diag. interrupt release
Bit 7: Proc. interrupt release
1 Interference
freq.suppression
Bit 0,1: Channel 0/1
Bit 2,3: Channel 2/3
Bit 4,5: Channel 4/5
Bit 6,7: Channel 6/7
2
Mode Channel 0/1
Bit 3 ... 0: Measuring range
Bit 7 ... 4: Measuring type
3
Mode Channel 2/3
Bit 3 ... 0: Measuring range
Bit 7 ... 4: Measuring type
4
Mode Channel 4/5
Bit 3 ... 0: Measuring range
Bit 7 ... 4: Measuring type
5
Mode Channel 6/7
Bit 3 ... 0: Measuring range
Bit 7 ... 4: Measuring type
6, 7
Upper limit value Channel 0
8, 9
Lower limit value Channel 0
10, 11 Upper limit value Channel 2
Var
rec1
array [0...13] of BYTE
retval
INT
busy
BOOL
Set Record set 1:
L B#16#0
//
Diagnostic disabled
T #rec1[0]
L B#16#AA
//
Interference freq. suppression
T #rec1[1]
L B#16#D4
//
Meas. range Type S: 0100b
T #rec1[2]
//
Meas. type
:
Thermocouple
T #rec1[3]
//
Compensation internal: 1101b
T #rec1[4]
//
for all channels
T #rec1[5]
L B#16#7F
//
Upper limit value
T #rec1[6]
//
channel 0: 7FFFh
L B#16#FF
T
#rec1[7]
.
.
.
L B#16#80
//
Upper limit
value
T #rec1[10]
//
channel 2: 8000h
L B#16#00
T
#rec1[11]
12, 13 Lower limit value Channel 2
Transfer with SFC 55 "WR_PARM" Record set 1to Module:
Call
"WR_PARM"
//call SFC 55
REQ :=TRUE
//write
request
IOID
:=B#16#54
//identifier for the address space: peripheral input
LADDR
:=W#16#100
//logical base address: 100
RECNUM :=B#16#1
//record number 1
RECORD :=#rec1
//record for Record set 1
RET_VAL :=#retval
//return value (0: no error >0: error code)
BUSY :=#busy
//
BUSY
= 1: the write operation has not been completed
Parameterization
during runtime
Example
Summary of Contents for HB130E SM
Page 1: ...Manual VIPA System 300V SM Order no VIPA HB130E_SM Rev 07 44...
Page 2: ...Lerrzeichen...
Page 6: ...Contents Manual VIPA System 300V ii HB130E SM Rev 07 44...
Page 14: ...Chapter 1 Basics Manual VIPA System 300V 1 6 HB130E SM Rev 07 44...
Page 58: ...Chapter 4 Digital Output Modules Manual VIPA System 300V 4 24 HB130E SM Rev 07 44...
Page 128: ...Index Manual VIPA System 300V A 2 HB130E SM Rev 07 44 M Stich...