S5 RK512 Protocol
S5 RK512 Protocol
OPERATING I N S T R U C T I O N S
f o r Special D r i v e r S 5 R 0 0 6
D a t a L i n k (RK512)
-----------------
w i t h P a r a m e t e r Assignment Facility
w i t h 3964 / 3 9 6 4 R Protocol
O p e r a t i n g System: SS-DOS B a s i s
- -
.................................................................
D,ca Link without Reaction Message TA-Nr: G330-833152
Introduction
$g~]@jk./..[.
I suI ,U il-
-
I EPFiOM
Memory Module
Floppy 0isk
Special .
Driver
2. I n s t a l l a t i o n of S p e c i a l Driver on PG685
.......................................
The l i b r a r y "C0M~1~R6.525" i s l o c a t e d on t h e
s u p p l i e d 5.25" mini floppy d i s k which c o n t a i n s
the special d r i v e r " ~ 5 ~ 0 0 6 "c o n s i s t i n g of
i n t e r p r e t e r and procedure.
I-S5ROOS ----- > i n t e r p r e t e r
P-S5R006 ----- > procedure
The i n s t a l l a t i o n of t h e d r i v e r i s c a r r i e d o u t on
a programming u n i t PG685, preceded by the
i n s t a l l a t i o n of t h e STEP5 base package a s w e l l a s
COM525 programming s o f t w a r e .
To e n s u r e t h e u s e of t h e s p e c i a l d r i v e r on a l l
user levels, it i s recommended t o c o n v e r t t h e
l i b r a r y i n t o a w r i t e p r o t e c t e d system f i l e by
e n t e r i n g t h e f o l l o w i n g command:
SET COMLIBR6.525[SYS R O ] .
CP User Programs
I n o r d e r t o copy from t h e l i b r a r y t o t h e u s e r
program, c a l l t h e "TRANSFER"f u n c t i o n by u s i n g
F1 -F2-F5.
3.1 .l T r a n s f e r of I n t e r p r e t e r
U s e f u n c t i o n key F3 i n o r d e r t o o b t a i n t h e
INTERPRETER t r a n s f e r mask f o l l o w e d by F7 which
superimposes t h e i n t e r p r e t e r t o be t r a n s f e r r e d
" I - S 5 ~ 0 0 6 " (component "RK" ) i n t o t h i s mask.
F u n c t i o n key F1 s t a r t s t h e t r a n s f e r ; t h e t r a n s f e r
end i s i n d i c a t e d by t h e f o l l o w i n g message:
"MELD.002t1: Completed!.
F8 "EXIT" l e a d s t o t h e r e t u r n i n t o t h e "TRANSFER"
mask.
3.1.2 Transfer of Procedure
A d e t a i l e d d e s c r i p t i o n on p a r a m e t e r assignment of
t h e j o b b l o c k can be found i n
The l o a d i n g procedure of t h e s p e c i a l d r i v e r
S5R006 i s i d e n t i c a l t o t h e procedure used f o r
Data Link RK512.
The t r a n s f e r of t h e u s e r program i n t o t h e CP
and/or t h e programming of an EPROM module i s
described i n d e t a i l i n
A d e t a i l e d d e s c r i p t i o n on t h e transmission
p r o c o t o l 3964R can be found i n
The code of t h e s t a r t c h a r a c t e r i s l o c a t e d i n t h e
"STARTZ" f i e l d . It i s t r a n s m i t t e d i n order t o
e s t a b l i s h t h e connection.
>
n. ZEICHEN - - - - - - - - ? nth character
* ENDZI > * end character 1
E N D Z ~------v-> end character 2
*
* BCC < - - - - - - - - GVAPOS / QVANEG
>
6 e r r o r s recognized by CP i n d a t a t r a f f i c
between CPU and CP
E
F
II e r r o r i n d a t a t r a f f i c CP c - - >
BREAK
partner
For a d e t a i l e d d e s c r i p t i o n of t h e e r r o r numbers
please r e f e r t o
For a d e t a i l e d d e s c r i p t i o n p l e a s e r e f e r t o
A l l e r r o r s recognized by t h e CP a r e e n t e r e d into
t h e e r r o r message a r e a of SYSTAT.
I f t h e e r r o r i n q u e s t i o n i s r e l a t e d t o a "SEND
DIREKT" job, an a d d i t i o n a l e r r o r number i s
e n t e r e d i n t o t h e c o n d i t i o n code word.
The f o l l o w i n g c h a p t e r s d e a l with s p e c i a l d r i v e r
s p e c i f i c SYSTAT e r r o r messages only.
The remaining e r r o r numbers a r e d e s c r i b e d i n t h e
60H
61 H
I A F e t c h job h a s been t r i g g e r e d by
the partner
A p p l i e s t o acknowledgement on
i n t e r p r e t e r level: a received
message could n o t be t r a n s f e r r e d
t o the central controller within
t h e acknowledgement d e l a y time
9.3 E r r o r Code i n ANZW and SYSTAT when P r o c e s s i n g t h e
-- - - - - - - - - P - - - - - - - - - - - - - - - -
S 2 s s i a l J o b "INIT"
1 80H
INIT-Send e x p e c t e d , b u t Send-
D i r e k t w i t h J o b No < > 189
recognized
Monitoring t i m e elapsed f o r
handshake on CP, o r
i l l e g a l r e p l y message from CPU
d u r i n g handshake
E r r o r d i s p l a y of CPU t o CP
which c a n n o t be i n t e r p r e t e d by CP
Source d a t a block t o o s h o r t
Access t o s o u r c e d a t a a r e a n o t
possible
I n c o r r e c t c o n d i t i o n code word
SYNCHRON d u r i n g j o b p r o c e s s i n g
9.4 E r r o r C o d e i n ANZW and S Y S T A T w h e n E v a l u a t i n g t h e
- - -- .
S2scial Job "INIT"
"SYNCHRON"must be c a l l e d f o r each i n t e r f a c e of
t h e CP i n t h e i n i t i a l s t a r t o r g a n i z a t i o n b l o c k s
of t h e CPU,
Range of Values: X = 0
y = l : block size 16 byte
y = 2 : block size 32 byte
y = 3 : block size 64 byte
y = 4 : block size 128 byte
y = 5 : block size 256 byte
y = 6 : block size 256 byte
y = 7 t o 254 :
block s i z e 256 b y t e
y = 255 : b l o c k s i z e 256 b y t e
If t h e r e a r e a l r e a d y t e n j o b s queueing, each
f u r t h e r j o b i s r e j e c t e d w i t h "completed with
error".
10.3 Handling Function "SEND - ALL"
--
When a "SEND DIREKT" job i s t r i g g e r e d , t h e "S3!?D
ALL" j o b ( = parameter job number = 0 ) c a r r i e s o u t
d a t a exchange between CPU and CP.
A f t e r r e c o g n i z i g a "SEND-DIREKT" job, t h e CP
temporarily stores the source parameters
s p e c i f i e d on t h e h a n d l i n g block, and sends a
"SEND ALL" r e q u e s t t o t h e CPU.
I n o r d e r t o e n s u r e t h a t t h e r e c e i v e d messages a r e
e n t e r e d i n t o t h e d a t a block i n t h e c e n t r a l
controller, t h e h a n d l i n g block "RECEIVE" must be
c y c l i c a l l y c a l l e d i n t h e u s e r program.
The e n t r y i n t o t h e d a t a block i s d i s p l a y e d t o t h e
S5 u s e r program by means of t h e c o n d i t i o n code
word of h a n d l i n g block "RECEIVE ALL".
When the handling block is running idle (no data
exists on CP) the higher ranking byte of the used
ANZW is "OOH", after entering the complete data
block an identifier is entered into the higher
ranking byte of the condition code word.
Providing operation is with co-ordination flag,
this identifier is the byte number of the co-
ordination flag. If operation is without header
and no co-ordination flag is used, this
identifier is "01 H".
For larger amounts of data several "RECEIVE ALL"
functions may be necessary, depending on the
block size, to transfer the data from the CP into
the S5 destination data area.
10-5 Special Functions
Function
I----- - ...---
SEND + FB244 FBI 20 F51 8Q
RECEIVE + FB245 FBI 21 FBI 81
CONTROL
SYNCHRON 1:I FB247
FB249
FBI 23
FBI 25
FBI 84
FBI 85
SEN-A
REC-A 1: / FBI 26
FBI 27
0007 :BE
0022 HANDLING
0023 :O M 0024 :ON M 0.0
0025 :R M 99.0 RE-SET TRIGGER FLAG
0026 :BEA
0027 M002 :
0028 **** ERROR HANDLING ****
0029 :O M 0.0 AND TRIGGER SPECIAL JOB "INIT"
002A :ON M 0.0 AGAIN, I F REQUIRED
002B :S M 99.0
002C :BE
*** Initialization Block DB189 ***
The special driver was parameterized as follows: -
(Standard values)
ZVZ = 200 ms character delay time
QVZ = 550 ms acknowledgement delay time
QUIPOS = <DLE> 10H pos. ack. establishment of connection
QUINEG = <NAK> 15H neg. ack. establishment of connection
QVAPOS = <DLE> 1 OH pos. ack. connection clearance
QVANEG = <NAK> 15H neg. ack. connection clearance
STARTZ = <STX> 02H start character
with 2 end characters
ENDZI = <DLE> 10H end character 1
ENDZ2 = <ETX> 03H end character 2
with BCC generation XOR logic operation on even parity
acknowledgement on procedure level
without message header
to all CPU's
receive data block DB255 from DWO
without co-ordination flag
PAGE l
zvz
QVZ
QUIPOS / QUINEG
QVAPOS / QVANEG
STARTZ / ENDKEN
ENDZl / ENDZ2
BCC / QUIT
KOPF / CPU-NR
DB-NR / DW-LOW
BYTE / BIT
Index of Versions
n. ?
I first release i July 88
-1NIT-Send 189 mandatory Oct 88
requirement for start-up
-method of BCC generation can
be parameterized
-differentation between
acknowledgement characters
establishment or clearance of
connection
-BREAK handling correct
Notes
-----
Index
-----
1 Introduction
-m----------
..................... . , . > , 1
2 I n s t a l l a t i o n of S p e c i a l Driver on PG685
- -- - - ---- --------S---
..... 1
3 C r s a t i o n of CP U s e r Program ................ 1
3 . 1 Copy Procedure from L i b r a r y t o
..............................
............1 U s e r Program
- - - - - - - - - v - -
3 . 1 . 1 T r a n s f e r of I n t e r p r e t e r .................1
-------------m---------
3 . 1 . 2 T r a n s f e r of Procedure ....,............. 2
------m--------------
4 Loading of S p e c i a l D r i v e r i n t o CP
-- - U
........... 1
- - - - - -.---------
6 I n i t i a l S t a r t of S p e c i a l Driver ............. 1
- ---
? Parameter Assignment of t h e Data Link
- --
............. 1
-------m---------------
7.1 . l S t r u c t u r e of I n i t i a l i z a t i o n Block
----------------m----------------
....... 2
7 . 1 . 2 Parameter Assignment of T i m e s
.............................
...,.,,,,, 2
7 . 1 . 3 Parameter Assignment of
--
........ 3
- - - - - U - - - -A-------
Zicknowledgement C h a r a c t e r s
- .-- v----------
7.1.4 Parameter Assignment of BCC Creation
-m----------------------------------
.... 4
7.1.5 Parameter Assignment
..................5
-----m--------------
.................... 2
W
Send Jobs
..... 4
for Evaluating Special Job "INIT"
-- -
1 1 CP Information ............................. 1
.S,.-.-"-.-..---------
23 Notes
-----
..................... , , 9
14 Index ...................................... I