CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Mon Nov 19, 2018 10:21 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Oct 05, 2018 9:39 am 
Offline

Joined: Sun Apr 22, 2018 6:48 pm
Posts: 2
hello,
I am trying use raspberry pi3 +b board. I make codesys test program. Program send to raspberry board run system running. I connected Led cathode to PIN 6 (GND) and led anode to PIN12 (PGIO18). Then I set PGIO18 TRUE level, but led doesn't shine. I don't know where are my mistake. Maybe could give me advice, how solve this problem. I think problem is with raspberry, but I write python program
Code:
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARD)
GPIO.setup(12,GPIO.OUT)
for x in range(0,10):
    GPIO.output(12,True)
    time.sleep(1)
    GPIO.output(12,False)
    time.sleep(1)
GPIO.cleanup()


Led is blinking.
GPIOs parameters:
Image
GPIOs IEC parameters:
Image

I attached all my test project.

when program is online
https://www.part.lt/img/5a95e7c981c8345 ... ba8627.jpg


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Fri Oct 05, 2018 5:45 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2958
Hi,
just try to revert your project to non device application... then it might work.
BR
Edwin


Top
   
PostPosted: Sat Oct 06, 2018 9:28 am 
Offline

Joined: Sun Apr 22, 2018 6:48 pm
Posts: 2
Edwin Schwellinger wrote:
Hi,
just try to revert your project to non device application... then it might work.
BR
Edwin

thank, now it is working


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited