3 . I ns t r uc ti on Se t3- 2 5 1API Mnemonic Operands Function ControllersES2EX2SS2 SA2 SX2 SE86 VRSC P Volume Scale ReadTypeOPBit Devices Word devices Program StepsX Y M S K H KnX KnY KnM KnS T C D E F VRSC, VRSCP: 5 stepsS * *D * * * * * *PULSE 16-bit 32-bitES2EX2 SS2 SA2 SX2 SE ES2EX2 SS2 SA2 SX2 SE ES2EX2 SS2 SA2 SX2 SEOperands:S: Variable resistor number (0~1) D: Destination device for storing scaled valueExplanations:VRSC instruction reads the scaled value (0~10) of the 2 VRs on PLC and stores the read data indestination device D as an integer, i.e. if the value is between 2 graduations, the value will berounded off.Program Example 1:When X0 = ON, VRSC instruction reads the scaled value (0 to10) of VR No. 0 and stores the readvalue in device D10.X0VRSC K0 D10Program Example 2:Apply the VR as digital switch: The graduations 0~10 of VR correspond to M10~M20, therefore onlyone of M10 ~M20 will be ON at a time. When M10~M20 is ON, use DECO instruction (API 41) todecode the scaled value into M10~M25.1. When X0 = ON, the graduation (0~10) of VR No.1 will be read out and stored in D1.2. When X1 = ON, DECO instruction will decode the graduation (0~10) into M10~M25.X0VRSC K1 D1X1DECO D1 M10 K4M10M11M20ON when VR graduation is 0ON when VR graduation is 1ON when VR graduation is 10