Peripheral Devices
502
9836 3521 01
When the Fieldbus master wants to read or write anything via the PowerMACS process data interface it
has to follow the following basic rules:
1. Read the STS word to ensure that it is zero.
2. If not zero then write zero to the CMD word to acknowledge that the previous data/result has been
read.
3. Wait for the STS word to become zero. This is PowerMACS way to indicate that it is ready to
receive a new command.
4. Write the wanted command to the CMD word.
5. Wait for the high byte (bit 15...8) of the STS word to become equal to the written in the CMD word.
This is PowerMACS way to acknowledge that the command is received and executed.
6. Check that the low byte (bit 7...0) of the STS word is zero. This indicates that the command was
executed successfully. If reading, the output data is now valid.
7. When finished, with reading of data and/or the STS word, write zero to the CMD word to
acknowledge that the result is read.
Example on how to read process data:
To read Process data the fieldbus master should use the following handshake sequence:
Fieldbus master
PowerMACS
1
Sets CMD = R + DataType
2
Loads data in the OUT area
Sets STS = R + Da Status
3
Reads data from the OUT area
Sets CMD = 0
4
Sets STS = 0
5
Waits until STS = 0
Example on how to write process data:
To write Process data the fieldbus master should use the following handshake sequence:
Fieldbus master
PowerMACS
1
Writes data in the IN area
Sets CMD = W + DataType
2
Reads data from the IN area
Sets STS = W + Da Status
3
Sets CMD = 0
4
Sets STS = 0
5
Waits until STS = 0
Summary of Contents for PowerMACS 4000
Page 2: ......
Page 46: ...System Architecture 46 9836 3521 01...
Page 267: ...Tightening 9836 3521 01 267...
Page 400: ...Tightening 400 9836 3521 01...
Page 486: ...Peripheral Devices 486 9836 3521 01...
Page 622: ...Peripheral Devices 622 9836 3521 01...
Page 664: ...References 664 9836 3521 01...
Page 668: ...9836 3521 01 2010 11 Edition 10 3 0 www atlascopco com...