-
It should meet your requirements.
But there was no way to go to the computer room for experiments.
Try it yourself.
data segment
con equ 38h
data ends
code segment
assume cs:code
go: mov ax,data
mov ds,ax
mov ax,82h
out con+3,ax
mov bx,27h
hh: cmp bx,17h
jae nn
cmp bx,14h
jae sn
cmp bx,04h
jae bb
cmp bx,01h
jae sn
mov bx,27h
jmp hh
nn: mov ax,0a5h
out con,ax
call delay
dec bx
jmp hh
sn: mov ax,00h
out con,ax
call delay
dec bx
jmp hh
bb: mov ax,05ah
out con,ax
call delay
dec bx
jmp hh
delay proc
mov cx,0ffffh
mn: nop
nopnop
noploop mn
retdelay endp
code ends
end go
-
Use MSCOMM control to send data to PLC (the text box is respectively to control the time of north-south straight traffic light, north-south bend, east-west straight line, east-west bend) Description: Since PLC recognizes ASCII codes sent from VB, these text boxes are the ASCII codes recognized by PLC after calculation. Used here.
p = val(
chr((p-3)10).
The VB receives the data sent by the PLC.
private sub mscomm1 oncomm()if = comevreceive then if a character is received.
s1 = Assign data in the receive buffer to a temporary variable"s1"
2) then 'if variables"s1"(The data in the receive buffer is received to the starting character '&h1b', and the variable.)"scoms"The number of bytes in is greater than 2), then.
scoms = ""
Clear the variable"scoms"data.
else Otherwise.
if s1 <>chr(&hd) then if variable"s1"The ending character '&h0d' is not received, then.
scoms = scoms&s1
will"s1"The data in is added to"scoms"Middle.
else Otherwise.
Data processing. end sub
End' is to store the data sent by the PLC.
end sub
Programming of the lower computer.
There are pictures, go check it out.
-
Who has sent him in the mailbox.。。
There will be thousands of people, but unfortunately it is not you.
-
It's super simple, and I suggest you take a look at the microcontroller interrupt and just look at the properties.
-
I know. My space has it, you can check it out.
The operation in Photoshop is that the Apple key CMD is equivalent to the CTRL key on the PC, and the original CTRL key has become the toggle key of the right mouse button. You can open the key settings in PS to know. The basic operation is the same as that of a PC. >>>More
Find out for yourself.
Right-click to view the status -- select Attribute Bar Support. Click on the details - the actual address 00-00-00-00-00-00-00 displayed in the property bar is the MAC address; Method 2: Start--Run--Type"cmd"--Type cd... >>>More
First of all, according to the characteristics of the computer laboratory, the Q&A function module can use the existing LAN topology to input and transmit information in the network environment, and store it in the host database server. Switch between group chat and one-on-one private chat with control over how you talk. >>>More
enconf t
username sgx password cisco sets the username and password. >>>More
1. Fines are administrative penalties, and you will not be fined if you do not violate the rules. >>>More