9 Electrical CAMDVP-PM Application Manual 9-279.4.2 Use DTO / DFROM Instructions to Set up E-CAM DataDVP-20PM is designed with 3 virtual modules exclusively for E-CAM0~ECAM2, and the numbers of eachE-CAM chart are K100, K101 and K102. Through DTO/DFROM instructions, you can set up or modify theE-CAM data in the user program.E-CAM Data created by PMSoft has been converted into floating point format because E-CAM dataoperates in floating point format. Therefore, the real-time modification data should be converted into binaryfloating point value first by DFLT instruction. In addition, floating point format should also be adopted whenmonitoring E-CAM Data in Monitor Table.The format of DFROM/DTO instruction for setting up E-CAM data is as below. In E-CAM application,E-CAM0~E-CAM2 is regarded as #100~#102 special modules, i.e. for accessing E-CAM0, operand m1 hasto be set as K100. Operand m2 represents the starting CR number, and the total number of CR will be amultiple of 4. Operand S refers to the starting number of designated source device. Operand n refers to thenumber of records to be written into CR. Every record of data consists of 2 words, and the set value of nshould be a multiple of 2. Please note that the 16-bit TO/FROM instructions are not supported currently.X0DTO m1 m2 S nK100= CAM Chart 0K101= CAM Chart 1 Starting numberof designated source deviceCR No.K102= CAM Chart 2Number of recordsof 32-bit E-CAM dataX0DFROM m1 m2 S n CR table of E-CAM:CR# Function DatatypeDatalength0~9999 Create / Modify single E-CAM data DWord 110000 Create rotary cut E-CAM Data DWord 1010001 Read E-CAM status DWord 710002 E-CAM Chart Real-time Change DWord 110003 Smooth curve interpolation DWord 310005 Read E-CAM status in Capture mode DWord 5 Explanations on CR:CR#0~9999: Create / Modify single E-CAM data[ Explanations]DVP-20PM is built in with 3 sets of E-CAM charts: E-CAM Chart 0~E-CAM Chart 2. Every E-CAM chart supports