Download Manual - Physics

Transcript
31/01/96
SY546 User's Manual
Soft. Ver. 0.02 PRELIMINARY
5.4.7. PARAMETERS SETTING SLAVE RESPONSE
After a Set Command the SY546 responds in the following way:
- If the Set operation is correct it responds with an error code = 0, and it is Busy for
about 20 msec;
- If it is Busy (for a preceding Set operation) it responds with an error Code = %FF00
Module Busy.
APPENDIX A: SOFTWARE EXAMPLES (A303 USERS)
The details of using the Mod. A303 to communicate with the Mod. SY546 are explained by
means of complete examples:
- PCCAENET.H:
Declaration for the communication with the Mod. A303
- CAENCNT.C :
Caenet Package for the A303 Module
These two listings describe the functioning and general design of a driver for the Mod A303;
all the possible errors are handled.
- PCSY546.C :
Demonstration on the use of Caenet Routines in communication
between A303 and SY546
This example is to be used as a guideline in creating a communication software between the
A303 and the SY546 module.
69