Chapter 6. Service Request Function
296
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
GFK-2950C
6.11
SVC_REQ 10: Read Target Name
Use SVC_REQ 10 to read the name of the currently executing target.
Output
The output parameter block has a length of four words. It returns eight ASCII characters: the target
name (from one to seven characters) followed by null characters (00h). The last character is always a
null character. If the target name has fewer than seven characters, null characters are appended to
the end.
Address
Low Byte
High Byte
Address
character 1 character 2
1
character 3 character 4
2
character 5 character 6
3
character 7 00
SVC_REQ 10 Example
When enabling input %I0301 goes ON, register
location %R0099 is loaded with the value 10, which
is the function code for the Read Target Name
function. The program block READ_ID is then called
to retrieve the target name. The parameter block is
located at address %R0100.
Program block READ_ID:
Содержание PACSystems RSTi-EP
Страница 357: ......
Страница 466: ...Chapter 9 Diagnostics GFK 2950C February 2018 451 ...