ÃÖÃÊÀÇ PLC¸¦ °ü¸®Çϱâ À§ÇØ ¸¸µç ÇÁ·ÎÅäÄÝ·Î 1979³â¿¡ ¸¸µé¾îÁ® ÇöÀç±îÁö »ç¿ëµÇ°í ÀÖ´Â ¸ðµå¹ö½º(Modbus)ÀÇ Á¤ÀÇ, ±â¼úÀû Ư¡ ¹× ÀåÁ¡¿¡ ´ëÇØ ¼³¸íÇÑ´Ù.
¸ðµå¹ö½º Á¾·ù¿¡ ´ëÇØ OSI ÂüÁ¶¸ðµ¨À» ±âÁØÀ¸·Î ¼³¸íÇÏ°í ÀÖÀ¸¸ç ¸ðµå¹ö½º ½Ã¸®¾óÀÇ Àü¼Û¹æ½ÄÀÎ ¸ðµå¹ö½º ASCII¿Í ¸ðµå¹ö½º RTU¸¦ ºñ±³ ¼³¸íÇÑ´Ù.
±×¸®°í ¸ðµå¹ö½º ½Ã¸®¾ó°ú ¸ðµå¹ö½º TCP¿¡ ´ëÇؼ Function Codeº° Åë½Å ¸Þ½ÃÁö ÇÁ·¹ÀÓ°ú ¿¹Á¦¸¦ ´ã°í ÀÖÀ¸¸ç ±× ¼¼ºÎ µ¿ÀÛÀ» ¼³¸íÇÏ°í ÀÖ´Ù.
¸ðµå¹ö½º ½Ã¸®¾ó, ¸ðµå¹ö½º TCP ³×Æ®¿öÅ©¿Í °¢ ³×Æ®¿öÅ©µéÀ» ¿¬°áÇϱâ À§ÇÑ ¸ðµå¹ö½º °ÔÀÌÆ®¿þÀ̸¦ ¼³¸íÇÏ¸ç ¸ðµå¹ö½º ³×Æ®¿öÅ© ±¸¼ºÀ» ¾î¶»°Ô ÇÏ´ÂÁö ¼Ò°³ÇÏ°í ÀÖ´Ù.
Contents 4
1. ¸ðµå¹ö½º ¼Ò°³ 8
1.1 ¸ðµå¹ö½º¶õ? 8
1.2 °ü·Ã ÀÚ·á 9
2. ¹è°æ Áö½Ä 10
2.1 ¿ë¾î Á¤¸® 10
2.2 OSI ±âº» ÂüÁ¶ ¸ðµ¨ (OSI basic reference model) 10
2.2.1 OSI ¸ðÇüÀ̶õ? 10
2.2.2 OSI 7°èÃþ 11
2.2.3 OSI 7°èÃþÀÇ Ä¸½¶È¿Í ¿ªÄ¸½¶È 12
2.2.4 OSI ¸ðÇü°ú TCP/IP 13
3. ¸ðµå¹ö½º Á¾·ù 15
3.1 ¸ðµå¹ö½º ½Ã¸®¾ó (MODBUS Serial) 15
3.2 ¸ðµå¹ö½º TCP (MODBUS TCP) 16
3.3 ¸ðµå¹ö½º Ç÷¯½º (MODBUS Plus) 16
4. ¸ðµå¹ö½º ÀϹÝÀû »çÇ× 17
4.1 ÇÁ·ÎÅäÄÝ »çÇ× 17
4.2 ¸¶½ºÅÍ-½½·¹À̺ê (¼¹ö-Ŭ¶óÀ̾ðÆ®) ¸ðµ¨ 19
4.3 µ¥ÀÌÅÍ ÀÎÄÚµù 20
4.4 µ¥ÀÌÅÍ ¸ðµ¨ 20
4.5 ¾îµå·¹½º ±ÔÄ¢ 22
5. ¸ðµå¹ö½º ½Ã¸®¾ó (MODBUS Serial) 24
5.1 ¸ðµå¹ö½º ½Ã¸®¾ó ÇÁ·¹ÀÓ 24
5.1.1 Address 25
5.1.2 Function Code 26
5.1.3 Data 28
5.1.4 Error Check 28
5.2 ¸ðµå¹ö½º ASCII vs ¸ðµå¹ö½º RTU 29
6. ¸ðµå¹ö½º ½Ã¸®¾ó Åë½Å ÇÁ·¹ÀÓ ¿¹Á¦ 32
6.1 ¸ðµå¹ö½º Æ®·£Àè¼Ç°ú ¿¹¿Ü ó¸® 32
6.2 Function Code 0x01 : Read Coils 35
6.3 Function Code 0x02 : Read Discrete Inputs 38
6.4 Function Code 0x03 : Read Holding Registers 39
6.5 Function Code 0x04 : Read Input Registers 42
6.6 Function Code 0x05 : Write Single Coil 43
6.7 Function Code 0x06 : Write Single Register 45
6.8 Function Code 0x07 : Read Exception Status (serial line only) 46
6.9 Function Code 0x08 : Diagnostics (serial line only) 48
6.9.1 Function Code 0x08 Áø´Ü Æ®·£Àè¼Ç°ú ¿¹Á¦ 48
6.9.2 Sub-Function Code Table 50
6.9.3 Sub-Function Code º° Áø´Ü Æ®·£Àè¼Ç 50
6.10 Function Code 0x0B : Get COM Event Counter (serial line only) 54
6.11 Function Code 0x0C : Get COM Event Log (serial line only) 55
6.11.1 Function Code 0x0C Æ®·£Àè¼Ç°ú ¿¹Á¦ 55
6.11.2 Event ÇÊµå ºñÆ® ·¹À̾ƿô 57
6.12 Function Code 0x0F : Write Multiple Coils 58
6.13 Function Code 0x10 : Write Multiple Registers 59
6.14 Function Code 0x11 : Report Slave ID (serial line only) 62
6.15 Function Code 0x14 : Read File Record 63
6.16 Function Code 0x15 : Write File Record 66
6.17 Function Code 0x16 : Mask Write Register 67
6.18 Function Code 0x17 : Read/Write Multiple Registers 69
6.19 Function Code 0x18 : Read FIFO Queue 71
6.20 Function Code 0x2B : Encapsulated Interface Transport 72
7. ¸ðµå¹ö½º TCP (MODBUS TCP) 78
7.1 ¸ðµå¹ö½º ½Ã¸®¾ó vs ¸ðµå¹ö½º TCP 78
7.2 ¸ðµå¹ö½º TCP Åë½Å 79
7.2.1 MBAP Header 79
7.2.2 ¸ðµå¹ö½º TCP ĸ½¶È/¿ªÄ¸½¶È 82
7.2.3 ¸ðµå¹ö½º TCP ¼ÒÄÏ Åë½Å 83
7.3 ¸ðµå¹ö½º TCP Åë½Å ÇÁ·¹ÀÓ ¿¹Á¦ 85
7.3.1 Function Code 0x03 : Read Holding Registers 85
7.3.2 Function Code 0x08 : Diagnostics 87
7.3.3 Function Code 0x10 : Preset Multiple Registers 88
8. ¸ðµå¹ö½º ³×Æ®¿öÅ© ±¸¼ºµµ 91
8.1 ¸ðµå¹ö½º ½Ã¸®¾ó ³×Æ®¿öÅ© ±¸¼ºµµ 91
8.2 ¸ðµå¹ö½º TCP ³×Æ®¿öÅ© ±¸¼ºµµ 91
8.3 ¸ðµå¹ö½º °ÔÀÌÆ®¿þÀÌ 92
8.4 ¸ðµå¹ö½º È¥ÇÕ(Mixed) ³×Æ®¿öÅ© ±¸¼ºµµ 93
ºÎ·Ï(Appendix). ASCII Code 94