SLC Ladder Example - Station 1 Parameter Protocol
Figure 6.5 Example SLC Ladder Logic - Station 1 Parameter Protocol
This section of the routine is only needed if the application needs to perform Parameter Protocol Reads or Writes to Station 1.
On power-up, initialize the Parameter Protocol routine.
First Pass
S:1
0015
15
This circuit utilizes the Parameter Protocol. A REQUEST to Station 1 is processed only one at a time, and after each
RESPONSE from Station 1 a zero must be sent and received to 'handshake' before the next REQUEST/RESPONSE transaction
can take place. For example:
Send a parameter read request --> Receive a parameter read response --> Send a "0" --> Receive a "0" --> [Transaction complete]
If the RESPONSE PCA Word 1 (N10:10) is "0", then a REQUEST can be initiated.
Elsewhere in the user program these words must be loaded with message data prior to initiating the REQUEST:
N7:10 = RC = the operation to be performed ("1"=Read, "2" = 16-bit Write, "3" = 32-bit Write)
N7:11 = PNU = the parameter number to read or write
N7:12 = Subindex = the DPI port # ("0"= Host or PowerFlex drive, "5" = 20-COMM-P, etc.)
N7:13 = PVA #1 = the parameter value (high word) - only used when writing parameters
N7:14 = PVA #2 = the parameter value (low word) - only used when writing parameters
The four Parameter Protocol Words set up in the scanner are used to perform the Parameter Protocol:
N20:10 = contains RC (the operation to be performed) and PNU (the parameter number to read or write) combined
N20:11 = Subindex (the DPI port #)
N20:12 = PVA #1 (the parameter value (high word))
N10:13 = PVA #2 (the parameter value (low word))
B3:19/15 is turned ON elsewhere in the program after the REQUEST message (N7:10-14) is loaded. This causes one Parameter
Protocol read or write to occur and B3:19/15 is turned OFF when the transaction is complete.
Station 1
Par Prot
Station 1
Messaging
RESPONSE
Request
PCA Word
B3:19
0016
15
Using Explicit Messaging (Parameter Protocol)
EQU
EQU
Equal
Source A
N10:10
0<
Source B
0
0<
Station 1
Par Prot
Messaging
Request
B3:19
U
15
Station 1
PCA Word
MOV
MOV
Move
Source
N7:11
15<
Dest
N20:10
0<
PCA Word
RC
RC bit 0
bit 0
N7:10
N20:10
L
0
12
PCA Word
RC
RC bit 1
bit 1
N7:10
N20:10
L
1
13
IND Word
(Subindex)
COP
COP
Copy File
Source
#N7:12
Dest
#N20:11
Length
3
6-11
Need help?
Do you have a question about the PowerFlex 20-COMM-P FRN 1 Series and is the answer not in the manual?
Questions and answers