DVP- ES2/ EX2/ SS2/ SA2/ SX2/ SE&TP O pe r a t i on Ma nua l - Pr ogr am m i ng3- 490For A2-type onlyCode Function Parameter Com. Addr. Read/Write data (Settings)K19(H13) JOG Operation P4-05 040AH S: Range:1~5000, 4999, 4998, 0K20(H14) Auxiliary Function(Servo ON/OFF) P2-30 023CH S: K1 = ON, Others = OFFK21(H15) Speed Command(3 sets) P1-09 ~ P1-11 0112H ~ 0117H S+0 ~ S+5: Range:-60000~+60000K22(H16) Torque Command(3 sets) P1-12 ~ P1-14 0118H ~ 011DH S+0 ~ S+5: Range: -300~+300K23(H17)Block Data Read /Write Register(for mappingparameter )P0-35 ~ P0-38 0046H~ 004DHS+0 ~ S+7: Please refer toexplanations in ASDA-A2manual.6. For relative M flags and special D registers, please refer to explanations of API 80 RSinstruction.Program example 1: COM2 (RS-485)1. When X0 = ON, PLC will send out communication commands by COM2 to read status of servodrive.2. When PLC received the feedback data from ASDA, M1127 will be active and the read data willbe stored in D0~D4.H87MOVM1002D1120SET M1120K100MOV D1129RST M1127ASDRW K0K1X0D0ASDA address: K1Function Code: K0Monitor ASDA statusData RegisterM1127SETX0M1122Set up in ASCII modeRST M1143 SET M1143Reset communication completed flag M1127Set communication protocol as 9600,8,E,1Set time-out value as 100msASCII mode: Store the received data into specified registers D0~D4 in HexRTU mode:Store the received data into specified registers D0~D4 in HexSending requestProcessing received dataRetain communication setting