JX2-PROFI1
8 Sample Programs
54
Jetter AG
8.2
Example 2
This example is to demonstrate the communication process when diagnose
telegrams and acyclic services are being made use of. A complete and effective error
evaluation will not be made here; in this example, only the basic principle of error
evaluation is to be illustrated.
TASK tInit
REGZERO 400
;reset diagnose trigger
;
WHEN
;wait, until Init is finished
BIT_CLEAR (rPB_Status, 13)
THEN
;
REGISTER_LOAD (rPB_Command, 5)
;reset
WHEN
;wait, until Init is finished
BIT_CLEAR (rPB_Status, 13)
THEN
REGISTER_LOAD (rPB_Command, 6)
;delete error
;
;
;configuration of cyclic services
REGISTER_LOAD (rPB_StartIN, 300)
REGISTER_LOAD (rPB_StartOUT, 400)
REGISTER_LOAD (rPB_NumIN, 4)
;number of input words
REGISTER_LOAD (rPB_NumOUT, 4)
;number of output words
;
;configuration of the acyclic services
REGISTER_LOAD (rPB_StartDSL, 600)
REGISTER_LOAD (rPB_StartDSS, 800)
REGISTER_LOAD (rPB_NumDSL, 120)
;600...719
REGISTER_LOAD (rPB_NumDSS, 120)
;800...919
;
;
REGISTER_LOAD (rPB_StatAdress, 3)
;slave no. 3
WHEN
;wait, until module is active
BIT_CLEAR (rPB_Status, 13)
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 ...