DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
-212
6. Execute the instruciton DTM for 5 times to have the results: D0=K12 and values in
D101~105 are K0.
K39: Read the PLC product serial number
S and n: no use; if you put any number here, there will be no action.
D: for storing the length of the product serial number
D1, D2, D3, and so forth: for storing the product serial number
Use K39 to read the length of PLC product serial number and the PLC product serial number.
The length of the PLC product serial number is the actual length. You cannot change the value here.
The value (the PLC product serial number) in the registers D1, D2 and so forth should be in WORD
format, if not, use H00 in the last byte to form a WORD.
Example:
Read the PLC product serial number and store the information in D0 (definable).
D0 is used to store the length of the PLC product serial number. D1, D2 and so forth is used in ASCII
code, high byte and low byte to store the PLC product serial number. Up to 9 data registers can be
used to store the PLC product serial number.