Hi!
I have a problem: I need activate couple outputs (for example, 1 and 3) on Outputs module 6ES5454-7LA11 when processor 6ES5942-7UB11 is started. I use STEP5 software to communicate with processor.
Please, give me some examples.
Thanks!
[?]: I need example to activate Output Module S5
-
- Posts: 19
- Joined: Mon Sep 12, 2011 5:33 pm
-
- Posts: 114
- Joined: Wed Jan 03, 2007 9:10 pm
- Location: Europe
Re: [?]: I need example to activate Output Module S5
Hi,
try next example.
try next example.
Code: Select all
Block: OB 001
Segment 1 of 1 zyclic block Lib =
:JU PB 3
:BE
Block: OB 021 File:
Segment 1 of 1 Stop -> Run Lib =
:S Q 0.1
:S Q 0.3
:BE
Block: OB 022
Segment 1 of 1 absence of power ! Lib =
:S Q 0.1
:S Q 0.3
:BE
Block: PB 003
Segment 1 of 4 Lib =
:A Q 0.1
:L KT 0003.2
:SD T 1
:NOP 0
:NOP 0
:NOP 0
:NOP 0
:***
Segment 2 of 4
:A Q 0.3
:L KT 0003.2
:SD T 2
:NOP 0
:NOP 0
:NOP 0
:NOP 0
:***
Segment 3 of 4
:A T 1
:R Q 0.1
:***
Segment 4 of 4
:A T 2
:R Q 0.3
:BE