DL06 D0-DCM receiving and sending ASCII strings problem.

raghfrost

Member
Join Date
Feb 2009
Location
perth
Posts
15
Dear Gentlemen/Ladies,

I have a bit of a nut cracker here. I am using a Koyo DL06 and a D0-DCM (slot 4). I have some issues with the DCM module. I will try my best to describe the problem i am facing.
I tried setting up the DCM using ladder instructions but it just did not want to work instead i set it up via PLC->Setup ->D0-DCM its works partially.

I went to the automation direct and there was an example program that worked like a charm for the onboard CPU PORT2 i could send and receive ASCII strings.

when it came to receiving ASCII strings from DCM i could only receive but no send. I've used the AIN instruction and i have used internal relay C1 on rising edge to setup count everytime a transaction is complete. this works when i am receiving ASCII string from the CPU port2 but not from the DCM. What am i doing wrong?
I have attached the code used only to receive ASCII strings from the DCM.

I would sincerely appreciate help from you Gurus

Ragh

PLC talk DCM pic.jpg
 
I updated both the firmware but they are not working right... sometimes on occasion they work and sometimes they dont.. i am really stumped.
 
A couple of things to try.

1) After you do your processing on the string, toward the end of the program try adding a NO contact C1 and ACRB instruction to clear the receive buffer.

2) If #1 does not help, try adding a NC contact C0 into rung #2 to lock out the AIN while busy, until it is complete.


One last thought. What memory address did you use for the non-Sequence buffer on the D0-DCM when you set it up?

The buffer takes quite a bit of memory area that you need to be sure to reserve for it's use.
 
Yea, just to re iterate what Icky said:
Unless it is just too early in the morning and my coffee hasn't kicked in yet, it looks like you will always have C100 on (except for maybe 1 scan).
This will make the AIN stay on and you will not be able to send anything out of the port.

Do what he said and just manually control the AIN on and off. Be sure that the AIN is not on when you try to use the PRINT instruction.
 
I have rewritten the code trying to turn on AIN when either CPU Port 2 or DCM port 2 is only working.

CPU port 2 is receiving into V4000
AIN receiving buffer at V5000
then Moved to V5500

DCM Port 2 is receiving into V2000
AIN receiving Buffer at V3000
then Moved to V3500

I will keep you posted, i am trying to do what icky812 mentioned.
Thanks Gurus for lending me a hand.
 
The process is working now.. after trouble shooting all morning i realised that, the problem lied with the memory mapping (you were spot on icky812 ) and using the special relays SP116 and SP126 to alternate the AIN instruction. The special relay instructions were tipped by the good guys at automation direct Mr.Ken. Once again thank you for all your help folks. I sincerely appreciate it Ragh
 

Similar Topics

Hi, Mostly AB guy here with a little Koyo experience, but all of its digital. I get handed three analog I/O cards and asked to prove that they...
Replies
6
Views
502
Hi all, I am making a test rig to be able to wire in any DL06 (or DL05) And create a HMI in red lions crimson 3.1 to test all the inputs and...
Replies
4
Views
933
I have a Cmore screen which is communicating to the DL06 in BCD and need to create a timer that works in real numbers for a test, I simply need to...
Replies
3
Views
2,149
I have a client that has many Automation Direct DL06 PLCs for a municipal water/wastewater system. When there is a power outage, one of the sites...
Replies
4
Views
2,445
Hey everyone, Working on a system with a Koyo DL06 processor and it's my first experience with them. I have DirectSoft 6 and we got the program...
Replies
5
Views
2,337
Back
Top Bottom