Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 71 matches
www.mcselec.com Forum Index
Author Message
  Topic: Modbus slave number
krolikbest

Replies: 10
Views: 933

PostForum: BASCOM-AVR   Posted: Tue Nov 28, 2017 10:42 pm   Subject: Modbus slave number
Hi,

is_request is reset in URxC after receiving all bytes of the master's frame, but i've also tested your solution. Eventually came for an idea to switch off communication error in panel master ( ...
  Topic: Modbus slave number
krolikbest

Replies: 10
Views: 933

PostForum: BASCOM-AVR   Posted: Tue Nov 28, 2017 8:23 pm   Subject: Modbus slave number
Unfortunatelly I was a bit to fast saying OK. Wink Problem I have concerns the respond that slave should send to master. I catch request in URxC interrupt. That works so far. But i send response in su ...
  Topic: Modbus slave number
krolikbest

Replies: 10
Views: 933

PostForum: BASCOM-AVR   Posted: Sat Nov 25, 2017 7:32 pm   Subject: Modbus slave number
Finally i've done. Now i know how to set an address of device (AVR as a slave) an the rest is to take apart the frame. Piece of cake Wink
Thank you.
Thread to close.
  Topic: Modbus slave number
krolikbest

Replies: 10
Views: 933

PostForum: BASCOM-AVR   Posted: Sat Nov 18, 2017 6:55 pm   Subject: Modbus slave number
Thank you for an idea hot to respond when modbus frame arrives. I was a little way-out in this subject because i thought that slave number should be written somewhere... Now i understand.
  Topic: Modbus slave number
krolikbest

Replies: 10
Views: 933

PostForum: BASCOM-AVR   Posted: Fri Nov 17, 2017 1:04 pm   Subject: Modbus slave number
Hi,

I would like to send some modbus frame from advantech panel to ATMega8 in modbus, rs 485. Panel is a master, avr is a slave. First problem i encountered is that i don't know how to set up a sla ...
  Topic: twi slave how to send more than one byte?
krolikbest

Replies: 2
Views: 382

PostForum: BASCOM-AVR Unsupported versions   Posted: Thu Mar 23, 2017 10:15 am   Subject: twi slave how to send more than one byte?
Thank ypu for an answer. I'll check it at home.

Martin
  Topic: twi slave how to send more than one byte?
krolikbest

Replies: 2
Views: 382

PostForum: BASCOM-AVR Unsupported versions   Posted: Thu Mar 23, 2017 7:40 am   Subject: twi slave how to send more than one byte?
Hello,

I made a short program to read encodoer with 500 ppr on ATMega8. ATMega8 is the slave and I would like to send some values to the master which is RaspberryPi. When it goes about to send one ...
  Topic: two stepper independent
krolikbest

Replies: 2
Views: 475

PostForum: BASCOM-AVR   Posted: Thu Feb 02, 2017 4:25 pm   Subject: two stepper independent
Thank you! I've so many times checked where could bug(or bugs..) be that i didn't notice
that timer2 is 8bit! Now works fine!

<SOLVED>
  Topic: two stepper independent
krolikbest

Replies: 2
Views: 475

PostForum: BASCOM-AVR   Posted: Wed Feb 01, 2017 8:30 pm   Subject: two stepper independent
Hello,

i would like to run two independent steppers and decided to use timer1 for 1-st stepper and timer2 for second stepper.
The code lokks like

$regfile = "m8adef.dat"
$crystal ...
  Topic: ATMega8 i2cslave display and button
krolikbest

Replies: 2
Views: 396

PostForum: BASCOM-AVR Unsupported versions   Posted: Mon Jan 09, 2017 7:01 pm   Subject: ATMega8 i2cslave display and button
Thank you for answer.
Of course, You are right, so i did as suggested but unsuccessful. I remarked print even removed, but nothing has changed.
But under simulator the whole program works, at least ...
  Topic: ATMega8 i2cslave display and button
krolikbest

Replies: 2
Views: 396

PostForum: BASCOM-AVR Unsupported versions   Posted: Sun Jan 08, 2017 9:25 pm   Subject: ATMega8 i2cslave display and button
Hello,

recently I've made one of my ATmega8 as a slave (I2C).Master is RaspberryPi. I can discover its address so far Smile But now I would like to implement some additional operations like button and ...
 
Page 5 of 5 Goto page Previous  1, 2, 3, 4, 5
All times are GMT + 1 Hour
Jump to: