Conditions  1/0   Available   AAA  Interruption   pending  in  device  AAI   Device  working  AAW  
Device not operational AANInterruption   pending  in  subchannel  AIX   For  the  addressed  device  
For another deviceSubchannel   working  AWX  
With the addressed device
With another deviceSubchannel   not  operational  ANX  Interruption   pending  in  channel   IXX   Channel   working  WXX  
Withthe   addressed  device  
With another device
Channel not operational NXX
Explanation:
The entries in thiscolumn   indicate  the  condition-code  
setting when theCLRIO   function  is  executed.  
* Whenever condition code 1 is set, theCSW   or  its  status  
portion is stored at location 64 during execution of the
instruction.
** When CLEARI/O   encounters  the  WXX  state,  either  
condition code 2 is set, or thechannel   is  treated  as  available   and  the  condition  code  is  set  according  to  the  
state of thesubchannel.   When  the  channel   is  treated  as  available,   the  condition  codes  for  the  WXX  states  am   the  
same as for the AXX states.
***A condition code 1 (with theCSW   stored)  or  2  may  be  
set, dep1ending on thechannel.   of   The  condition  code  depends  on  the  state  of  the  subchannel,   the  channel   type,  and  the  system  model.   If   the  sub  channel   is  not  operational,   a  condition  code  2  or  3  is  set.  If   the  subchannel  is  available   or  working  with  the  addreSSE!d   device,  a  condition  code  2  is  set.  Otherwise,   a  
condition code0   or  2  is  set.  
# When a"device   not  operational"   response  is  received  in  selectin!J   the  addressed  device,  condition  code  3  is  set.  
@START   1/0   FAST   RELEASE  may  cause  the  same  
condition code to be set as forSTART   1/0   or  may  cause  
conditicln code0   to  be  set.  
Condition-CodeSettings   for  I/O   States   and  Instructions  
errors can occur:
Channel Equipment Error: The channel can detect
the following equipment errors during execution ofSTART   I/O,   START   I/O   FAST   RELEASE,  TEST   I/O,   CLEAR  I/O,   HALT  I/O,   and  HALT  DE  
VICE:
1. The device address that the channel received
on the interface duringil1itial   selection  either  
has a parity error or is not the same as the one
196Syst  1  em/370   Principles   of  Operation   Condition  Code  Settings  SIO   SIOF   TIO   CLRI01   HIO   HDV  TCH   STIOC   O,1*@   0   0   1*  1*  0   0   1*@  1*  0   1  *  1  *  0   0   1*@  1*  0   1*  1  *  0   0   3@  3  0   3  3  0   0   2  
2
2
2
3
2
2
3
1* 1*0   0   0   0   2  0   0   0   0   0   2  1*  1*#  1*#  0   0   2  0   1*#  0   0   0   3  3  3  3  0   0   See   Note  ##  
2 *** 2 + 2 ##
2. 2of   2  ##  
3 3 3 3 3 3
+ The condition code depends on the1/0   interface  sequence,  the  channel   type,  and  the  system  model.   If   the  channel   ascertains  
that the device received thesignal   to  terminate,  a  condition  code  
1 is set and theCSW   stored.  Otherwise,   a  condition  code  2  is  
set.
## When thechannel   is  unable   to  store  the  channel   I   D  
because of
the working or interruption pending state, a condition code 2
is set.If   the  working  or  interruption  pending  state  does  not  
preclude storing thechannel   10,   a  condition  code  0   is  set.  •   If   the  subchannel  is  interruption  pending  for  the  addressed  
device, condition code 1 may be set depending on thechannel   type.  
Note: For the purpose of executingSTART   I/O,   START   I/O   FAST   RELEASE,   TEST   1/0,   CLEAR  1/0,   HALT  DEVICE,   and  
HALTI/O,   a  channel   containing  a  pending  interruption  condition  
appears the same as anavailable   channel,   and  the  condition-code  
setting depends on the states of the subchannel and device. The
condition codes for theI   XX  states  are  the  same  as  for  the  AXX  
states, where the Xs represent the states of the subchannel and the
device. As anexample,   the  condition  code  for  the  lAW   state  is  
the same as for AAW.
the channel sent out.Some   device  other  than  
the one addressed may be malfunctioning.
2. The unit-status byte that the channel received
on the interface during initial selection has a
parity error.
3. A signal from theI/O   device  occurred  at  an  
invalid time or had invalid duration.
4. The channel detected an error in its control
equipment. (This is also true forSTORE   CHANNEL  ID  and  TEST   CHANNEL.)  
Device not operational AAN
For another device
With the addressed device
With another device
With
With another device
Channel not operational NXX
Explanation:
The entries in this
setting when the
* Whenever condition code 1 is set, the
portion is stored at location 64 during execution of the
instruction.
** When CLEAR
condition code 2 is set, or the
state of the
same as for the AXX states.
***A condition code 1 (with the
set, dep1ending on the
condition code
# When a
@
condition code to be set as for
conditicln code
Condition-Code
errors can occur:
Channel Equipment Error: The channel can detect
the following equipment errors during execution of
VICE:
1. The device address that the channel received
on the interface during
has a parity error or is not the same as the one
196
2
2
2
3
2
2
3
1* 1*
2 *** 2 + 2 ##
2. 2
3 3 3 3 3 3
+ The condition code depends on the
that the device received the
1 is set and the
set.
## When the
because of
the working or interruption pending state, a condition code 2
is set.
preclude storing the
device, condition code 1 may be set depending on the
Note: For the purpose of executing
HALT
appears the same as an
setting depends on the states of the subchannel and device. The
condition codes for the
states, where the Xs represent the states of the subchannel and the
device. As an
the same as for AAW.
the channel sent out.
the one addressed may be malfunctioning.
2. The unit-status byte that the channel received
on the interface during initial selection has a
parity error.
3. A signal from the
invalid time or had invalid duration.
4. The channel detected an error in its control
equipment. (This is also true for
 
             
            







































































































































































































































































































































