登录
首页 » Others » 通讯篇

通讯篇

于 2020-06-18 发布
0 183
下载积分: 1 下载次数: 1

代码说明:

说明:  欧姆龙plc通讯篇,与各种上位机数据通讯。(Omron PLC Newsletter)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 实验3
    说明:  1、单向通信 向甲方连续不断地发送变量a的值,未按键,a=0x0f,按键后根据按键确定a值;并将a的值取反从P0口输出,控制D0、D1、D2、D3相应点亮。乙方接收到数据并偶校验正确后,将接收数据取反从P0口输出,控制D0、D1、D2、D3相应点亮。 2、双向通信 甲方连续不断地发送变量a的值,未按键,a=0x0f,按键后根据按键确定a值;乙方未按键不发送,按键后将乙方按键得到的a*16发送;甲乙双方都将发送数据与接收数据相或后再取反,从P0口输出控制D0—D7相应点亮。 3、间隔发送 未按键,甲方不发送数据,按键后甲方每隔50ms连续发送4个字节:0xff、a、a、a。 乙方只在收到甲方数据0xff后的3个数据并验证相同时,才将接收数据*16发送。 甲乙双方都将发送数据与接收数据相或后,从P0口输出控制D0—D7相应点亮。(1. One-way communication The value of variable a is continuously sent to Party A without key, a = 0x0f. After the key is pressed, the value of a is determined according to the key; and the value of a is output from P0 port to control the corresponding lighting of D0, D1, D2 and D3. After receiving the data and checking it correctly, Party B will output the received data from P0 port and control D0, D1, D2 and D3 to light up accordingly. 2. Two-way communication Party A continuously sends the value of variable a without key, a = 0x0f, and determines a value according to the key after the key; Party B does not send the key without key, and sends the a*16 obtained by the key after the key is pressed; Both parties will send the data to or from the receiving data, and then retrieve the data and control D0-D7 from the P0 port to light up accordingly. 3. Interval Sending Without keys, Party A does not send data. After keys, Party A sends 4 bytes continuously every 50 ms: 0xff, a, a.)
    2020-11-16 09:29:42下载
    积分:1
  • Desktop
    说明:  蒙特卡洛模拟风电场随机出力,产生多种场景(Monte Carlo simulation)
    2021-04-18 20:48:57下载
    积分:1
  • VmLtc2945驱动板详细代码c
    本人自己亲手开发的关于VmLtc2945驱动板详细代码c,实际测试过直接可用!(I personally developed on the VmLtc2945 driver board detailed code C, the actual test, directly available!)
    2021-05-13 13:30:02下载
    积分:1
  • CH11-KEA128-SPI
    说明:  1. 硬件接线 (1)调试串口(UART_Debug)使用UART2,在“printf.h”文件中宏定义, 对应引脚为TX-PTD7,RX-PTD6 (在“uart.h文件中宏定义)。 (2)灯0~3(LIGHT_0~LIGHT_3)对应的引脚是PTC0~PTC3,高电平点亮(由硬件接法决定) (3)SPI0_CLK对应的引脚是PTE0, SPI0_MOSI对应的引脚是PTE1, SPI0_MISO对应的引脚是PTE2,SPI0_PCS对应的引脚是PTE3, SPI1_CLK对应的引脚是PTG4, SPI1_MOSI对应的引脚是PTG5, SPI1_MISO对应的引脚是PTG6,SPI1_PCS对应的引脚是PTG7。 (4)SPI0作为master,SPI1作为slave,SPI1接收SPI0发送的数据并产生中断。 用导线将PTE0与PTG4对接,将PTE1与PTG5对接,将PTE2与PTG6对接,将PTE3与PTG7对接。(1. Hardware wiring (1) Debugging Serial Port (UART_Debug) uses UART2, macro-defined in "printf.h" file, corresponding pins are TX-PTD7, RX-PTD6. (macro definition in the uart.h file). (2) The pins corresponding to the lamp 0~3 (LIGHT_0~LIGHT_3) are PTC0~PTC3, and the high-level lighting is determined by the hardware connection. (3) The pin corresponding to SPI0_CLK is PTE0, and the pin corresponding to SPI0_MOSI is PTE1. The pin corresponding to SPI0_MISO is PTE2, and the pin corresponding to SPI0_PCS is PTE3. The pin corresponding to SPI1_CLK is PTG4, and the pin corresponding to SPI1_MOSI is PTG5. The pin corresponding to SPI1_MISO is PTG6, and the pin corresponding to SPI1_PCS is PTG7. (4) SPI0 acts as master and SPI1 acts as slave. SPI1 receives data sent by SPI0 and generates interruption. PTE0 and PTG4 are docked by wire, PTE1 and PTG5 are docked, PTE2 and PTG6 are docked, PTE3 and PTG7 are docked.)
    2020-06-16 12:00:01下载
    积分:1
  • with vc and mixed into Matlab example, in other circumstances combined organizat...
    这是一个用vc和matlab混合变成的例子,在两者环境下结合编成是很好的思路,有很大的应用前景,希望对大家有所帮助-with vc and mixed into Matlab example, in other circumstances combined organization is a good idea, a great prospect, we hope to help
    2023-08-31 20:50:03下载
    积分:1
  • 五子棋小游戏
    使用图形库,利用c++语言实现了界面化五子棋小游戏(Realize the interface game of Gobang)
    2020-06-24 04:40:02下载
    积分:1
  • I2C Serial Data Interface Module for Silabs C8051F133
    I2C Serial Data Interface Module for Silabs C8051F1-I2C Serial Data Interface Module for Silabs C8051F133
    2022-01-25 16:23:45下载
    积分:1
  • 它+ +是一个C++库的数学、信号处理和通信系统…
    IT++ is a C++ library of mathematical, signal processing and communication system routines/functions. Its main use is in simulation of communication systems or for performing research in the area of communications.
    2022-05-20 01:01:16下载
    积分:1
  • 51黑论坛_27 彩屏例程
    说明:  普中科技 51单片机 tft触摸,显示图片,各种型号彩屏,sd卡程序(Puzhong Science and Technology 51 Single Chip Microcomputer TFT Touch, Display Pictures, Various Types of Color Screen, SD Card Program)
    2019-02-08 14:36:11下载
    积分:1
  • 水位
    说明:  使用matlab建模,将传统的pid控制技术与模糊pid技术进行对比,控制液位(Use matlab modeling to compare traditional pid control technology with fuzzy pid technology to control the liquid level)
    2020-06-17 09:36:06下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载