5−28
Electric Drives
and Controls
Bosch Rexroth AG
RhoMotion
1070072367 / 04
CAN-Bus peripheral equipment
5.5.6
BAPS-Program
PROGRAM ANA_IO
;******************************************************************************
;*Demo program CAN−Analog−I/O with B~IO
;*P405,P407: Nominal value = 1000 = 10 Volt
;******************************************************************************
input REAL: 201 = AI1, 202 = AI2, 203 = AI3, 204 = AI4 ;analog inputs
output REAL: 201 = AO1, 202 = AO2, 203 = AO3, 204 = AO4 ;analog outputs
INTEGER: INDEX
REAL : D1, D2, D3, D4
BEGIN
Loop:
WRITE PHG, cls, ’D1,...,D4’ WAIT 2
INDEX = −10
REPEAT 20 TIMES
AO1=100*INDEX
AO2 = −100
AO3 = −700
AO4 = 900
WAIT 1
D1 = AI1
D2 = AI2
D3 = AI3
D4 = AI4
WRITE PHG, cls, D1,’ ’,D2,’ ’,D3,’ ’,D4,’ ’
WAIT 1
INDEX = INDEX + 1
REPEAT_END
JUMP Loop
PROGRAM_END
Содержание Rexroth Rho 4.0
Страница 12: ...XII Electric Drives and Controls Bosch Rexroth AG RhoMotion 1070072367 04 Contents Notes ...
Страница 22: ...2 2 Electric Drives and Controls Bosch Rexroth AG RhoMotion 1070072367 04 System overview Notes ...
Страница 78: ...4 14 Electric Drives and Controls Bosch Rexroth AG RhoMotion 1070072367 04 PCLrho4 0 Notes ...
Страница 168: ...A 4 Electric Drives and Controls Bosch Rexroth AG RhoMotion 1070072367 04 Appendix Notes ...