Summer Rising is free and available to all NYC students in grades K-8, pending seat availability. Summer Rising 2024 is a partnership between New York City Public Schools and the Department of Youth and Community Development (DYCD). Note: Some RS232 ports are capable of sourcing the 422 currents, if connected correctly, but I'm not into swimming upstream.New Middle School Schedule: Monday to Thursday, 8:00am to 4:00pm July 2-August 8 You can find small inexpensive ones that are powered by your serial port that usually work fine. So pin 2 & 3 in the 232 side become a 20 mA current in the 422 loops which gives you lower impedance and longer distance.Īll you have to do to get RS422 for your display is to use a short haul modem. In case you are not aware, the RS422 is just a 0 - 20 mA current to replace the voltage based signal in the RS232. Once the two match, then bring them all together. If this is a problem, drop back to RS232 and use a second PC with "Terminal" to show you the ASCII string that VB is sending. Once you can see what you want, then design your VB app to send the string. First, work with "Terminal" and your RS422 converter until you can identify a properly defined string which shows up on the display. I would break the job into two sepreate parts. You can define a whole series of strings and then click the "key" on the screen and the string comes out the port. "Terminal.exe is a free standing terminal program from Microsoft that has programmable function keys built in. I have found that it is very useful to use a second PC running "Terminal.exe" from an old OS like Win95. When doing ASCII / Serial port comm from a PC, there are many ways to get in trouble. Me.Text1.Text = Me.Text1.Text & MSComm1.Input Private Sub MSComm1_OnComm() 'receive data Private Sub Command1_Click() 'open/close port This is complete code, writen and tested in last 10 minutes: Go back to form and click once on MSComm then go to properties and change RTreshhold from 0 to 1 MSComm1.ComPort =1 'whatever port you haveĭoubleclick on command2 button and enter code that allows us to send data: This will put in Text1 whatever is received through serial port.ĭoubleclick on command1 button and enter code that will open/close serial connection (in this case it's COM1 but you can change that, right?): While we are placing controls on form, also drop one button and two text boxes.ĭouble-click on MSComm control that is on your form Double-click on it and you will also see it on the form. This will add new icon in your tool pallet (it will look like phone). If that works (manually sending message) then we can automate it with some program, VB will do just fine.Ĭlick Ctrl+T to open components and select "Microsoft Comm Control 6.0" (place check mark in front of it and click ok) This will confirm if your port is available, cables are correct and if the message you try to send is accepted by target device. Optionally you can install card with serial ports.īefore you kill yourself with programming, test if you can communicate with the target device using some sort of terminal (hyperterminal will do but you may pick something like SuperMon, if your PC has RS232 you just need to use RS232 to R422 converter. MSCOMM will easily handle 9600 bps, 8 data bits, 1 stop bit, no parity. Serial communication in VB is childs play. We trying to use the VB component called "MSCOMM" for the coding, but it is still not work.ĭoes anybody understand how to write the right code by using VB6 to communicate with the LED Display Board? Transmit: to show 'USD 5,000' as Price 2 on LED Board. where Address Byte is 0x81 (both Boards). Transmit: to show 'USD1,000,000,000' as Price 1 on LED Board. Serial Protocol (serial com: RS422 9600 bps, 8 data bits, 1 stop bit, no parity). We have tried it several times, but it's still not work. We are going to reprogram the software by using Visual Basic 6. My company bought a 2nd-hand LED Display Board with 2 lines of LED display (each 16 digits). I am new here & I don't know whether i join the right forum or not for asking this thing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |