Chapter 6 Applied Instructions composed of X0.0~X0.7 and Y0.0~Y0.7. The corresponding internal relays of the 16 switches are M10~M17 and M20~M27. M20 M21 M22 M23 M24 M25 M26 M27 Y0.0 Y0.1 X0.1 X0.2 X0.3 X0.4 X0.5 X0.6 X0.7 3. The eight input devices starting from X0.0 are connected to the two output devices starting from Y0.0 to form the two rows of switches. The states of the two rows of switches are read in the matrix scan, and stored in the devices starting from M10 specified by D 2 . That is, the states of the first row of switches are stored in M10~M17, and the states of the second row of switches are stored in M20~M27. The first row of input signals are read.
Y0.0 1 3 The second row of input signals are read. 2 4 Y0.1 Additional remark: 1. If S +7, D 1 + n -1, or D 2 +( n* 8)-1 exceeds the device range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 2. If n is less than 2, or if n is larger than 8, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B. 3. If users declare the operand S in ISPSoft, the data type will be ARRAY [8] of BOOL. 6-165 M10 M11 M12 M13 M14 M15 M16 X0.0 X0.1 X0.2 X0.3 X0.4 X0.5 X0.6 X0.7