Siemens CPU 948 Programming Manual page 152

Simatic s5 s5-155u
Table of Contents

Advertisement

Semaphore Operations
Semaphore application example continued:
FB 100
NAME :SEMADIS
:SED 10
:JZ
=M001
:AN
F 10.1
:S
F 10.1
M001 :BE
FB 110
NAME: MSGOUT
:L
FW12
:T
OW 6
:AN
F 10.3
:S
F 10.3
:
:BE
FB 101
NAME :SEMAENAB
:SEE 10
:JZ
=M001
:AN
F 10.4
:S
F 10.4
:
M001 :BE
3 - 80
Disable semaphore no. 10
If the semaphore is disabled successfully,
set "SEMAPHORE-DISABLED" flag.
Transmit a message
to the peripherals
Set "TRANSFER MESSAGE"
flag
Enable semaphore no. 10
Set "SEMAPHORE ENABLED"
flag
CPU 948 Programming Guide
C79000-G8576-C848-04

Advertisement

Table of Contents
loading

Table of Contents