
JX2-PROFI1
8 Sample Programs
58
Jetter AG
;transmit these data to the master
CALL sTestDiag
REGISTER_LOAD (rPB_DiagLen, 10)
;no user data
REGISTER_LOAD (rPB_Command, 7)
;simple diagnose
RETURN
;
;
TASK tAcyclServices
WHEN
BIT_SET (rPB_Status, 3)
;the master operates the module
(
BIT_SET (rPB_Status, 4)
;read request
OR
BIT_SET (rPB_Status, 5)
;write request
)
THEN
IF
BIT_SET (rPB_Status, 4)
;read request
THEN
CALL suAcyclDSL
THEN
IF
BIT_SET (rPB_Status, 5)
;write request
THEN
CALL suAcyclDSS
THEN
GOTO tAcyclServices
;
LABEL suAcyclDSL
;read data block
;here, the slot address and the index can be
;evaluated and command 12 can be issued
;if required
REG 100
;calculate the number of words
=
REG rPB_DSLLen
+
1
/
2
Summary of Contents for JetWeb JX2-PR0FI1
Page 1: ...Article 608 641 01 November 2002 Printed in Germany ...
Page 4: ...JX2 PROFI1 Table of Contents Jetter AG 4 ...
Page 13: ...1 Safety Instructions JetWeb 13 Jetter AG ...
Page 15: ...JetWeb 15 Jetter AG Fig 3 Side View JX2 PROFI1 Fig 4 Top View JX2 PROFI1 ...
Page 19: ...JetWeb 19 Jetter AG ...
Page 21: ...JetWeb 21 Jetter AG ...
Page 23: ...JetWeb 23 Jetter AG 5 3 Features ...
Page 43: ...JetWeb 43 Jetter AG ...
Page 45: ...JetWeb Jetter AG 45 ...
Page 62: ...JX2 PROFI1 8 Sample Programs 62 Jetter AG ...
Page 63: ...JX2 PROFI1 Appendices Jetter AG 63 Appendices ...