283
3) Suitable soft component
*Notes: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD; DM
includes DM, DHM; DS includes DS, DHS. M includes M, HM, SM; S includes S, HS; T
includes T, HT; C includes C, HC.
SEND D10 D100 K2
S1·
S2·
n
M0
Data sending instructions, M0's rising edge sends data once.
Communication port. Scope: K0 ~ K5. K0: Port0 (RS232), K1: Port1(RS232), K2:
Port2(RS485), K3: Port3(left extension port), K4: Port4(above extension port 1), K5:
Port5(above extension port 2).
In the process of data transmission, the "sending" flag SM162 (communication port 2)
is set on.
When the buffer number is 8 bits, only low-byte data is sent, so D100 = the number
of registers sent, for example, to send low-byte data in D10-D17, D100 should be set
to 8.
When the buffer number is16 bits, high and low byte data will be sent, so D100 = the
number of registers sent * 2. For example, when sending high and low byte data in
D10-D17, D100 should be set to 16, and when sending, low byte will be before the
high byte.
tudonghoatoancau.com