Mitsubishi — Chapter 8 Application Instructions API 100-149

9 Application Instructions API 150-199 Complement flag Before execution b15 b0 0 M1096 S Carry flag M1095 MBS M1097=0 D After the execution of left matrix displacement M1095 1 Carry flag Program Example 2: When X1 = On, M1097 = On, indicating a right matrix displacement is performed. Set M1096 = 1 and the 16-bit registers D0 ~ D2 will perform a right matrix displacement and the result will be stored in the matrix of the 16-bit registers D20 ~ D22. The carry flag M1095 will be “0”. X1 b15 b0 Before execution S Complement flage M1097=1 D 0 M1095 After the execution of right matrix displacement Carry flag Explanations: Flag explanations:

DVP-PLC Application Manual 9-108 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 M1097 MBSP D0 D20 K3 MBS P D0 D20 K3 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 M1095 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 Carry flag 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 M1096 MBS 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 M1095 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Flags Function M1095 Matrix rotation/displacement/output carry flag.

M1096 Matrix displacement/input complement flag. M1097 Matrix rotation/displacement direction flag.