Examples/applications
6.6 Data structure definition
FC 45
Function manual, Release 03/2006 , J31069-D0167-U001-A2-7618
6-13
The following shows an extract from a STEP 7 user program. It shows how a large number
of MOBY channels can be handled easily using symbolic names. A command is started via
each of the inputs 0.0, 0.1 and 0.3. An edge trigger flag is used to prevent the command
from being started several times:
A
AN
A
AN
S
S
AN
R
MOBY DB.channel[1].ready // 1st MOBY
MOBY DB.channel[1].error
I 0.0
EdgeTriggerFlag_1
MOBY DB.channel[1].command_start
EdgeTriggerFlag_1
I 0.0
EdgeTriggerFlag_1
A
AN
A
AN
S
S
AN
R
MOBY DB.channel[2].ready // 2nd MOBY
MOBY DB.channel[2].error
I 0.1
EdgeTriggerFlag_2
MOBY DB.channel[2].command_start
EdgeTriggerFlag_2
I 0.1
EdgeTriggerFlag_2
A
AN
A
AN
S
S
AN
R
MOBY DB.channel[3].ready // 3rd MOBY
MOBY DB.channel[3].error
I 0.3
EdgeTriggerFlag_3
MOBY DB.channel[3].command_start
EdgeTriggerFlag_3
I 0.3
EdgeTriggerFlag_3
Call
"MOBY FC"
Params_DB: = 45
Params_ADDR: = 0
Call
"MOBY FC"
Params_DB: = 45
Params_ADDR: = 320
Call
"MOBY FC"
Params_DB: = 45
Params_ADDR: = 640