9 Application Instructions API 150-199 Program Example 2: When X1 = On, M1097 = On, indicating a right matrix rotation is performed. The 16-bit registers D0 ~ D2 will perform a right matrix rotation and the result will be stored in the matrix of the 16-bit registers D20 ~ D22. The carry flag M1095 will be “0”. X1 M1097 Before Execution b15 b0 M1095 MBR After right rotation M1097=0 0 M1095 Remarks: Flag explanations: DVP-PLC Application Manual 9-110 MBRP D0 D20 K3 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 1 1 0 0 1 1 0 1 1 0 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 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Flags Function M1095 Matrix rotation/displacement/output carry flag.
M1097 Matrix rotation/displacement direction flag.