
adccommunitymod (AutomationDirect) asked a question.
Created Date: November 29,2006
Created By: Porter
**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****
I am having troubles with addressing due to the D2-CTRINT module being in the first slot after the CPU. I don't know whether to consider them inputs,outputs or neither. I 've tried all three possibilities in my program and still I can not get it right. Here is my setup with how I think the addressing is: DL250-1 D2 CTRINT slot0 X0-X3 ?? D2 16TD2-2 slot1 Y0-Y17 ?? D2 16ND3-2 slot2 X4-X23 ?? F2 08AD-1 slot3 X24-X33 ?? F2 08DA-1 slot4 Y20-Y30 ?? F2-04THM slot5 X34-X37 ?? I am using the counter in mode 40 using the following initialization: ld k40 out v7633 ldk4 outv7634 Please advise if possible.
Created Date: November 29,2006
Created by: bcarlton
Each input or output module occupies AT LEAST 8 locations or some multiple of that. So any module's location will start at ??0. Read the specificatons for each module in the documentation. The D2-CTRINT occupies 8 of each so thath the next input module begins at X10. The next output starts at Y10. This assumes you are using the default addressing.
Created Date: November 29,2006
Created by: Tom Jenkins
The 205 modules use all addresses in octal format for each card, whether or not you use them in your program or whether or not they are wired. Analog modules consume more I/O addreses as they use extra words for the data conversion. Additional restrictions apply to the 240 CPU. See pages 4-43 and 4-44 in the catalog.
Try this:
D2-CTRINT X0-X7, Y0-Y7 (8 in 8 out)
D2 16TD2-2 Y10 to Y27 (16 out)
D2 16ND3-2 X17-X27 (16 in)
F2 08AD-1 X30-X47(uses 16 input addresses)
F2 08DA-1 Y30-Y47 (uses 16 output addresses)
F2 04THM X50-X107 (uses 32 input addresses)
Created Date: November 29,2006
Created by: hanziou
Tom Jenkins suggested:
Try this:
D2-CTRINT X0-X7, Y0-Y7 (8 in 8 out)
D2 16TD2-2 Y10 to Y27 (16 out)
D2 16ND3-2 X17-X27 (16 in)
F2 08AD-1 X30-X47(uses 16 input addresses)
F2 08DA-1 Y30-Y47 (uses 16 output addresses)
F2 04THM X50-X107 (uses 32 input addresses)
Depending on how you program, you might want to manually set the I/O addressing, so that the modules are on the word boundaries.
For example, in the memory map, x0-x17 in in word V40400 = VX0. The X## each represent a bit. The V#### each represent a word.
In the addressing above, The F2-08AD-1 would be split across 2 words:
X30-X47 -> MSB of V40401 and LSB of V40402.
Not a big deal because you can always use the LDF and OUTF. I just like having my I/O module addressing "lined up " with word boundaries. It makes it easier for ME when troubleshooting.
Created Date: November 29,2006
Created by: AZRoger
Originally posted by bcarlton:
Each input or output module occupies AT LEAST 8 locations or some multiple of that. ...default addressing...
I have three D2-08TD2 8 point output modules. Each of these needs 16 addresses. The system auto-configured allocating 16 for each. I could change the ranges of Ys used by the modules, but I couldn't override the number of Y's used.
hanziou's idea of putting everything on word (16-bit) boundaries is also a good idea to help keep things straight.
If you 're not short of addresses, and it looks like you aren't, then you can assign non-overlapping addresses for the inputs and outputs. For example all the inputs could be in the 0-77 (octal range) and all the outputs could be in the 200-277 range. Adjusting your example as last modified by Tom Jenkins and applying hanziou's word alignment, you would get:
D2-CTRINT X0-X7, Y200-Y207 (8 in 8 out)
D2 16TD2-2 Y220 to Y237 (16 out)
D2 16ND3-2 X20-X37 (16 in)
F2 08AD-1 X40-X57(uses 16 input addresses)
F2 08DA-1 Y240-Y257 (uses 16 output addresses)
F2 04THM X60-X117 (uses 32 input addresses)
Nicknames also help in the "keeping my head wrapped around the project " department.
Roger
Created Date: November 29,2006
Created by: Porter
Thanks all, I appreciate the responses. Now to try and get this thing to work.
Created Date: November 29,2006
Created by: Porter
I am having troubles with addressing due to the D2-CTRINT module being in the first slot after the CPU. I don't know whether to consider them inputs,outputs or neither. I 've tried all three possibilities in my program and still I can not get it right. Here is my setup with how I think the addressing is:
DL250-1
D2 CTRINT slot0 X0-X3 ??
D2 16TD2-2 slot1 Y0-Y17 ??
D2 16ND3-2 slot2 X4-X23 ??
F2 08AD-1 slot3 X24-X33 ??
F2 08DA-1 slot4 Y20-Y30 ??
F2-04THM slot5 X34-X37 ??
I am using the counter in mode 40 using the following initialization:
ld k40
out v7633
ldk4
outv7634
Please advise if possible.