PLC-5, 1785-PFB/B and 1794-APB

ALLEN-BRADLEY
BULLETIN 1203-FM1 & 1203-FB1
Use with ProfiBus
(PLC-5, 1785-PFB/B and 1794-APB)
APPLICATION NOTE # PROBUS - 1
May 27, 1997
PURPOSE
The purpose of this document is to provide guidelines for wiring and control
schemes for SCANport devices including Bulletin 1305 and 1336 PLUS AC
Drives. This document is a suggestion only. Users must ensure that installations
meet applicable codes and are suitable for the existing conditions.
WHAT THIS NOTE
CONTAINS
This document contains information and an example ladder program that
demonstrate how to control two 1305 drives using a PLC-5/40, 1785-PFB/B,
1794-APB and 1203-FM1/FB1 module and base.
INTENDED
AUDIENCE
This application note should be used by personnel familiar with the hardware
components and programming procedures necessary to operate SCANport
devices. It is also assumed that the user has some familiarity with ProfiBus, the
PLC-5 and ladder programming.
WHERE IT
IS USED
The diagrams, parameter settings and auxiliary hardware used in this application
note are designed to address specific issues in many different applications.
Some changes by the user may be necessary to apply the concepts of this
document to a specific application.
APPLICATION
CONSIDERATIONS
These example ladder programs were written to be simple and clear examples
and contain no fault handling abilities. Consult the PLC-5, 1785-PFB/B, 1794APB and 1203-FM1/FB1 manuals for more information.
SCANport devices may assign different meanings to bits in the Logic Command
and Status words. The usage of the Reference and Feedback words may also
vary. Consult the manual for your SCANport device for more information.
Faxback Document # 3306 Web location Http://WWW.AB.COM
Page 1 of 8
ALLEN-BRADLEY
ProfiBus
Configuration
The screen prints in Figures 1 through 8 show the configuration of the ProfiBus
and Flex I/O system for the example program.
Figure 1 -- Basic Project Configuration
Figure 2 -- 1794-APB Configuration Screen
Faxback Document # 3306 Web location Http://WWW.AB.COM
Page 2 of 8
ALLEN-BRADLEY
Figure 3 -- Module Definition
Figure 4 -- User Parameter Data Definition
Figure 5 -- Data Table Addressing
Faxback Document # 3306 Web location Http://WWW.AB.COM
Page 3 of 8
ALLEN-BRADLEY
Figure 6 -- Configuring the DP Channel
FILE
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
O
I
S
B
T
C
R
N
F
N
N
N
DATA TABLE MAP
TYPE
LAST ADDRESS
SIZE (elements)
output
O:177
128
input
I:177
128
status
S:127
128
binary or bit
B3/15
1
timer
T4:0
1
counter
C5:0
1
control
R6:0
1
integer
N7:0
1
floating point
F8:0
1
unused
0
integer
N10:92
93
integer
N11:88
89
unused
0
unused
0
unused
0
unused
0
unused
0
unused
0
unused
0
unused
0
integer
N20:1
2
SIZE (words)
134
134
134
7
9
9
9
7
8
6
99
95
6
6
6
6
6
6
6
6
8
Figure 7 -- PLC5 Memory Map
Faxback Document # 3306 Web location Http://WWW.AB.COM
Page 4 of 8
ALLEN-BRADLEY
;============================================================
; Allen-Bradley Profibus Manager Version 0.40b
;============================================================
; Documentation of the Address Assignment table
; Project : Profiapp
; Created by : Allen-Bradley
; File Create Date : 04/01/1996
;_______________________________________________
;
AAT header of project 'Profiapp'
;
AAT computed in Standard mode
AAT Header :
Table Sync In
Table Sync Out
Table Async In
Table Async Out
Table Status
Table Command
=
=
=
=
=
=
AAT by slave
Slave @=2 'Flex
Phys. Module
Log. Mod.
Phys. Module
Log. Mod.
Phys. Module
Log. Mod.
Phys. Module
Log. Mod.
I/O Adapter'
'1794-APB Status',
0, Table Sync In
'1794-APB Status',
1, Table Sync Out
'1203-FM1',
0, Table Sync In
'1203-FM1',
1, Table Sync Out
N10:0
N11:0
N12:0
N13:0
N10:7
N11:6
with
with
with
with
with
with
14 bytes length
12 bytes length
0 bytes length
0 bytes length
170 bytes length
164 bytes length
Data I/O map
Table : Sync In
Slave @=2 'Flex I/O Adapter',
Phys. Mod. '1794-APB Status', Log. Mod. 0
Slave @=2 'Flex I/O Adapter',
Phys. Mod. '1203-FM1', Log. Mod. 0
Table : Sync Out
Slave @=2 'Flex I/O Adapter',
Phys. Mod. '1794-APB Status', Log. Mod. 1
Slave @=2 'Flex I/O Adapter',
Phys. Mod. '1203-FM1', Log. Mod. 1
Table : Async In
(None)
Table : Async Out
(None)
N10:0
Length 1 word
N11:0
Length 1 word
N10:1
Length 6 words
N11:1
Length 5 words
N10:0
Length 1 word
N10:1
Length 6 words
N11:0
Length 1 word
N11:1
Length 5 words
PLC-5 Data Table map
Table Sync In
: last address = N10:92
Table Sync Out
: last address = N11:88
Figure 8 -- Data Table Addressing
Faxback Document # 3306 Web location Http://WWW.AB.COM
Page 5 of 8
ALLEN-BRADLEY
Ladder Program - SCANport Channel Enables
The section of program shown in Figure 9 enables both SCANport channels on
the 1203-FM1 module.
¦
Enable
¦
SCANport
¦
Channel 1
¦
N11:1
¦---------------------------------------------------------------------( )----¦
¦
0
¦
¦
¦Enable
¦
¦
¦SCANport ¦
¦
¦Channel 2 ¦
¦
¦ N11:1
¦
¦
+---( )----+
¦
8
Figure 9 -- Enabling the SCANport Channels
Ladder Program - Drive 1 Start/Stop and Reference
The section of program shown in Figure 10 provides start/stop control and a
frequency reference to the 1305 drive connected to SCANport channel 1.
The User Start is a normally open pushbutton while the User Stop is a normally
closed pushbutton.
¦ Drive 1
¦Drive 1
Drive 1
¦ User
¦User
START
¦ Momentary ¦Maintained
Command
¦ START
¦NOT STOP
¦ Input
¦Input
¦
I:001
I:001
N11:2
¦-----] [--------] [---------------------------------------------------( )---¦ ¦
00
¦
01
1
¦ ¦Drive 1
¦
¦ ¦START
¦
¦ ¦Command
¦
¦ ¦ N11:2
¦
¦ +---] [----+
¦
1
¦ Drive 1
Drive 1
¦ User
STOP
¦ Maintained
Command
¦ NOT STOP
¦ Input
¦
I:001
N11:2
¦----]/[---------------------------------------------------------------( )---¦
01
0
¦
Drive 1
¦
Frequency
¦
Reference
¦
+MOV---------------+
¦---------------------------------------------------------¦MOVE
¦
¦Source
N20:0¦
¦
¦
16383¦
¦
¦Destination N11:3¦
¦
¦
16383¦
¦
+------------------+
Figure 10 -- Drive 1 Control and Reference
Ladder Program -- Drive 2 Start/Stop and Reference
Faxback Document # 3306 Web location Http://WWW.AB.COM
Page 6 of 8
¦
¦
¦
¦
ALLEN-BRADLEY
The section of program shown in Figure 11 provides start/stop control and a
frequency reference to the 1305 drive connected to SCANport channel 2. This
section functions identically to that shown in Figure 10 except for the changes in
addresses.
¦ Drive 2
¦Drive 2
Drive 2
¦ User
¦User
START
¦ Momentary ¦Maintained
Command
¦ START
¦NOT STOP
¦ Input
¦Input
¦
I:001
I:001
N11:4
¦-----] [--------] [---------------------------------------------------( )---¦ ¦
02
¦
03
1
¦ ¦Drive 2
¦
¦ ¦START
¦
¦ ¦Command
¦
¦ ¦ N11:4
¦
¦ +---] [----+
¦
1
¦ Drive 2
Drive 2
¦ User
STOP
¦ Maintained
Command
¦ NOT STOP
¦ Input
¦
I:001
N11:4
¦----]/[---------------------------------------------------------------( )---¦
03
0
¦
Drive 2
¦
Frequency
¦
Reference
¦
+MOV---------------+
¦---------------------------------------------------------¦MOVE
¦
¦Source
N20:1¦
¦
¦
32767¦
¦
¦Destination N11:5¦
¦
¦
32767¦
¦
+------------------+
¦
¦
¦
¦
¦
Figure 11 -- Drive 2 Control and Reference
Input Data Table File
The data table file shown in Figure 12 is the input data read from the 1203-FM1
via ProfiBus.
Address
N10:0
0
1
2
3
4
5
6
0
0
2570
3855 16383
3855 32767
----- ----- ----- ----- ----- ----- ----|
|
|
|
|
|
|
|
|
|
|
|
|
|-Drive 2 Feedback
|
|
|
|
|
|
|
|
|
|
|
|-Drive 2 Logic Status
|
|
|
|
|
|
|
|
|
|-Drive 1 Feedback
|
|
|
|
|
|
|
|-Drive 1 Logic Status
|
|
|
|
|
|-SCANport Channel Status
|
|
|
|-Reserved (always zero)
|
|-1794-APB Status
Figure 12 -- Input Data Table File
Output Data Table File
Faxback Document # 3306 Web location Http://WWW.AB.COM
Page 7 of 8
ALLEN-BRADLEY
The data table file shown in Figure 13 is the data to be sent to the 1203-FM1 via
ProfiBus.
Address
N11:0
0
1
2
3
4
5
0
257
2 16383
2 32767
----- ----- ----- ----- ----- ----|
|
|
|
|
|
|
|
|
|
|
|-Drive 2 Reference
|
|
|
|
|
|
|
|
|
|-Drive 2 Logic Command
|
|
|
|
|
|
|
|-Drive 1 Reference
|
|
|
|
|
|-Drive 1 Logic Command
|
|
|
|-SCANport Channel Enables
|
|-1794-APB Command
Figure 13 -- Output Data Table File
Faxback Document # 3306 Web location Http://WWW.AB.COM
Page 8 of 8