B&B Electronics RS-485 Digital I/O Module 485SDD16 manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of B&B Electronics RS-485 Digital I/O Module 485SDD16, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of B&B Electronics RS-485 Digital I/O Module 485SDD16 one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of B&B Electronics RS-485 Digital I/O Module 485SDD16. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of B&B Electronics RS-485 Digital I/O Module 485SDD16 should contain:
- informations concerning technical data of B&B Electronics RS-485 Digital I/O Module 485SDD16
- name of the manufacturer and a year of construction of the B&B Electronics RS-485 Digital I/O Module 485SDD16 item
- rules of operation, control and maintenance of the B&B Electronics RS-485 Digital I/O Module 485SDD16 item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of B&B Electronics RS-485 Digital I/O Module 485SDD16 alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of B&B Electronics RS-485 Digital I/O Module 485SDD16, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the B&B Electronics service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of B&B Electronics RS-485 Digital I/O Module 485SDD16.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the B&B Electronics RS-485 Digital I/O Module 485SDD16 item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    485SDD16-1005 Manual Cover Page B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 RS-485 Digital I/O Module Model 485SDD16 Document ation Num ber 485SDD16-1005 pn#3605-r1 This product Designed and Manufactured In Ottawa, Il lin ois USA of domestic and imported pa rts by B&B Electronics Mfg. Co. [...]

  • Page 2

    485SDD16-1005 Manual Table of Contents i B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Table of Contents Chapter 1 - Introduction ........................................... 1 485SDD16 Features ............................... ................ 1 Packing List ................................. ....[...]

  • Page 3

    485SDD16-1005 Manual 1 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Chapter 1- Introduction 485SDD16 Features The 485SDD16 is a genera l purpose control module t hat operates through an RS-485 inte rface. The 485SDD16 offers 16 discrete digital I/ O lines. With the se features, the mo dule can [...]

  • Page 4

    485SDD16-1005 Manual 3 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Power Supply Input Voltage: 8 Vdc to 16 Vdc @ 35 milliamps (Doesn’t include the power consumption of external devices.) Connection: Terminal Blocks or DB-25S Communications Standard: RS-422/485 Addresses: 256 (Factory default[...]

  • Page 5

    485SDD16-1005 Manual 5 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Chapter 2 - Connections This chapter will cover the connections re quired for the 485SDD16. There are three sets of conne ctions: digital I/O, serial port, and power supply. Do not make any connections to the 485SDD16 until you[...]

  • Page 6

    485SDD16-1005 Manual 7 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Figure 2.1 - Example of Multi-Node Network 485SDD16 485SDD16 485SDD16 Figure 2.2 - RS-485 2-wire Connection 8 485SDD16-1005 Manual B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5[...]

  • Page 7

    485SDD16-1005 Manual 9 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Chapter 3 - Commands There are only two commands required to control the 485S DD16: set output l ines, and read I/O lines. Five additional commands are used for configuring the module: set module addr ess, set turn- around dela[...]

  • Page 8

    485SDD16-1005 Manual 11 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 A byte represents an eight-bit binary number (11111111), therefore each byte can repre sent eight I/O lines. Each bit is assigned a bit position and a weight (value ). Refer to Table 3.3. Table 3.3 - Bit Assignments for I/O Li[...]

  • Page 9

    485SDD16-1005 Manual 13 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Set Module Address Command The Set Module Address command is used to change the address of a 485SDD16. This commands requires one data byt e. This data byte is used to specify the module's new address. Addresses can be as[...]

  • Page 10

    485SDD16-1005 Manual 15 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Set Power-up States Command The Set Power-up States command is used to set the states of output lines when the module's power is recycled. This command requires two data bytes. These data by tes specify the output state o[...]

  • Page 11

    485SDD16-1005 Manual 17 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Chapter 4 - I/O Interfacing This chapter will explain "HIG H" and "LOW" st ates and show some gene ral examples of how to int erface to t he I/O lines. C aution must be taken not to exceed 485SDD16 specific[...]

  • Page 12

    485SDD16-1005 Manual 19 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Figure 4.4 - Isolated Solid State Input Digital Outputs Digital outputs are used to turn on or turn off external devices. Digital outputs are CMOS compatible and op erate between 0Vdc and +5Vdc. Out puts can be used to control[...]

  • Page 13

    485SDD16-1005 Manual 21 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Chapter 5 - Software This chapter will be divided into two sections. The first section covers programming techni ques for constructing a command string, receiving data and manipulatin g data in QuickBASIC. The second section d[...]

  • Page 14

    485SDD16-1005 Manual 23 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Step 3 - Receiving the data: MSdefs$ = INPUT$(1,#1) LSdefs$ = INPUT$(1,#1) MSpups$ = INPUT$(1,#1) LSpups$ = INPUT$(1,#1) Maddr$ = INPUT$(1,#1) Mtdly$ = INPUT$(1,#1) Step 4 - Mani pulating the data : MSdefs = ASC(MSdefs$) LSdef[...]

  • Page 15

    485SDD16-1005 Manual 25 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Step 1b - Set appropriat e outputs LOW MSstates = MSstates AND (NOT(mask)) LSstates = LSstates AND (NOT(mask)) By "ANDing" the current states with the comp lement of the appropriate mask of a digit al output line, th[...]

  • Page 16

    485SDD16-1005 Manual 27 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Step 1b - Set appropriat e outputs power-up states LOW MSpups = MSpups AND (NOT(m ask)) LSpups = LSpups AND (NOT(mask)) By "ANDing" the current power-up states wit h the complement of the appropriate mask of a digita[...]

  • Page 17

    485SDD16-1005 Manual 29 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Demonstration Program The 485SDD16 Demonstration (SDD16) Program (IBM PC or Compatible) provides t he user with examples of how to receive and transmit commands to the 485SDD16. The SDD16.EXE is the executable program, the SDD[...]

  • Page 18

    485SDD16-1005 Manual Appendix A A-1 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 APPENDIX A ASCII Character Codes A-2 Appendix A 485SDD16-1005 Manual B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Decimal ASCII 0 .............. ..... NU L 1 .[...]

  • Page 19

    485SDD16-1005 Manual Appendix A A-3 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Decimal ............ ASC II 80 ............... .. P 81 ............... .. Q 82 ............... .. R 83 ............... .. S 84 ............... .. T 85 ............... .. U 86 ............... .. V 87 ...............[...]

  • Page 20

    485SDD16-1005 Manual Appendix B B-1 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 APPENDIX B Hexadecimal/Decimal Conversions B-2 Appendix B 485SDD16-1005 Manual B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 The decimal (base 10) numbe ring sy[...]

  • Page 21

    485SDD16-1005 Manual Appendix B B-3 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Hexadecimal to Decimal Conv ersion: Decimal = (1st Hex digit x 4 096) + (2nd Hex digit x 256) + (3rd Hex digit x 16) + (4th Hex digit) Each "Hex digit" is the decimal equiv alent value of the hexadecimal [...]

  • Page 22

    485SDD16-1005 Manual A ppe ndix C C-1 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 APPENDIX C Interface Modules for SDD16 Models C-2 Appendix C 485SDD16-1005 Manual B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 DTB25 The DTB25 connects to th[...]

  • Page 23

    485SDD16-1005 Manual A ppe ndix C C-3 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 DBM16 The DBM16 module provides buffering and increased power handling for all t he sixteen I/O lin es of the SDD16 models. Each of the I/O lines can be programmed as an input or as an output by setting a jumper [...]

  • Page 24

    485SDD16-1005 Manual A ppe ndix C C-5 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Figure C.2 - DBM16 Outline Drawing Inputs Digital inputs are used to sense "HIGH" and "LOW" states based on voltage levels. This is accomplished via switch closures, contact closures or a soli[...]

  • Page 25

    485SDD16-1005 Manual A ppe ndix C C-7 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Outputs Digital outputs are used to turn "ON" or turn "O FF" external devices. Outputs can be used to control solid sta te output modules, logic circuits, and relays. Caution must be taken no [...]

  • Page 26

    485SDD16-1005 Manual A ppe ndix C C-9 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Figure C.10 - DBM16 Schematic C-10 Appendix C 485SDD16-1005 Manual B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104[...]

  • Page 27

    485SDD16-1005 Manual Appendix D D-1 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 APPENDIX D Adding Data Field Comfirmation D-2 A ppe ndix D 485SDD16-1005 Manual B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 With serial communications in a la[...]

  • Page 28

    485SDD16-1005 Manual Appendix D D-3 B&B Electronics -- 707 Dayton Road -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815 ) 433-5104 Table D-1 Extended Commands Function Command Response Read I/O Lines #{addr}RD {I/O msb}{~I/O msb}{I/O lsb}{~I/O lsb} Set Output Lines #{addr}SO{I/O msb}{~I/O msb}{ I/O lsb}{~I/O lsb} no response Set Module Address[...]