4. PLC interface MCP1
30
Festo GDCP-CMXR-F-EN 0909a
Signal curves: Loading a further program with negative confirmation:
Min. 1 prg. loaded
SREG2.B7 LOADED
1
Requirements:
ACK and NACK = 0
2
Rising edge at “Load
program” loads the new
program number N
”
Condition:
The program cannot be
loaded for one reason or
another.
3
The LOAD output must
carry 1-signal for as long as
it takes until the ACK input
also reports 1-signal.
4
As soon as NACK = 1
has been recognised by the
PLC, it may reset LOAD
to 0. The CMXR reacts with
a falling edge at NACK.
5
As soon as NACK = 0
has been recognised by the
PLC, the controller is ready
for a new job.
”
The cause of the failed
load procedure is
registered as an error.
Acknowledge
SREG2.B4 ACK
Not Acknowledge
SREG2.B5 NACK
Load the program
CREG2.B7 LOAD
Req. prg number
Output data
4.4.12
Unloading the program
The program with the transferred program number is unloaded. It also possible to unload
all programs at once. To do this, the program number 0 has to be transferred.
Condition
Control sovereignty on PLC interface
The program to be unloaded is loaded.
ACK and NACK are FALSE
Program number 1 ... n is in the program register
MCP1-EA: CREG.PRGNR register (4 bits)
MCP1-PB: PRGNR register (1 byte)
Activity
Set the CREG.UNLOAD bit (rising edge).
Wait for Acknowledge SREG.ACK or Not Acknowledge
SREG.NACK
Reaction
A program is unloaded.
In the event of an error, SREG.ERROR is set.
Summary of Contents for CMXR-C1
Page 2: ......
Page 42: ...6 Communication variables 42 Festo GDCP CMXR F EN 0909a...