Herunterladen Inhalt Inhalt Diese Seite drucken

B&R BRCOMP1-0 Anwenderhandbuch Seite 235

Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

Example
5.5 seconds after pressing a key (I 042) an motor (O 058) is to be started. Another key
(I 043) is used to stop the motor:
0000
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
The same program example can also be done in ladder diagram:
0000
0001
0002
!
I 042
00 --I I---+---I+I---+---------+---------+---------+---------+---------+---(P)---
!
M START
!
!
I 043
01 --I I---+---------+---------+---------+---------+---------+---------+---(X)---
!
M STOP
!
!
T D10
02 --I I---+---------+---------+---------+---------+---------+---------+---( )---
!
MOT.ON
Time definition Txx must be executed one time for every program cycle. If it is not executed, the
function of the software timer cannot be guaranteed, if it is executed more than once in a program
cycle, then the time is incorrect.
Each software timer occupies one register between R 0800 and R 863 which serves a pre-scalar and
another register from R 0900 to R 0963 which serves as a counter. The time definition Txx is a
software interrupt that takes approximately 0.5 msec (note that there will be an effect on the program
scan when numerous software timers are used!).
T10
5"50
LDAA
N
I 042
PRS
F 100
EORA
F 100
RST
F 100
PRS
S D10
LDAA
I 043
RST
S D10
LDAA
T D10
STAA
O 058
END
T10
5"50
JSR
LAD1
END
F 100
EDGE
B&R COMPACT PLC
Time definition
START key
Pos. edge of I 042
Pos. edge of I 042
Pos. edge of I 042
Start Motor offset
STOP key
Start Motor offset
Motor offset
Motor
Time definition
Ladder diagram call
S D10
M OFFS.
S D10
M OFFS.
O 058
MOTOR
- 235 -

Quicklinks ausblenden:

Werbung

Inhaltsverzeichnis
loading

Diese Anleitung auch für:

Brcomp2-0

Inhaltsverzeichnis