CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Thu Jul 19, 2018 12:40 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Nurse call system
PostPosted: Fri Feb 23, 2018 10:29 pm 
Offline

Joined: Fri Feb 23, 2018 2:08 pm
Posts: 4
Hi.
I try to make one Nurse Call System.
I have install Codesys (I hope all package) on laptop (Windows 10).
I have make the Wi-Fi connection with RPi,it's work.
I have Raspberry Pi3 B+touchescreen display 7' and USB 16 relayboard from Numato.(Raspbyan is instaled)
I has set 15 inputs of GPIO to BOOL,mapping to GVL_IO,i have add Modbus to command relay (I have try to make mapping-> GPIO5 to relay1,GPOI6 to relay2....GPIO26 to relay26 but I don't know how).1-15 relay for door lamp ,relay 16 for alarm(Mute from touchscreen ''Anulare sonerie")
I have make in Visualization mapping beetwen ROOM 1 and Color Variable-alarmstate.Build to check and 1 Error
"Cannot convert type BOOL to type ANY_NUM." (Numeric function?)
I have load library .
I watch very much to almoust all YouTube tutorials.I'm a little autodidact.
What I doing wrong,or missing there?
Can anybody help me?
Thankyou very much.


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


Top
   
 Post subject: Re: Nurse call system
PostPosted: Sat Feb 24, 2018 7:46 am 
Offline
Frequent User
Frequent User

Joined: Wed May 04, 2016 6:00 pm
Posts: 234
Hi

You are traying to assign a bool to a color. Try to assign the bool to toggle color, and the bixx will change between alarm color qnd normal color.

Be healty!


Top
   
 Post subject: Re: Nurse call system
PostPosted: Mon Feb 26, 2018 10:12 pm 
Offline

Joined: Fri Feb 23, 2018 2:08 pm
Posts: 4
Thank you.
Without errors.
Connected with device and run.In run mode,when I set False or True,in visualization don't change nothing.I set green on normal and red on alarm.Should not color change when I set false or true in run mode?
All I have to do now is to assign (map)15 rooms to 15 relay wich is connected on USB to raspberry and make an application to run on raspberry.He'll have to start the boot alone.
Now is now.I have read very much all weekend ,Help of Codesys,FAQ + tutorials.
I hope to succeed.I will publish the project when it is functional.There will also be a bachelor's degree project.
I will come back with success or other errors. :D
Thanks again.


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


Top
   
 Post subject: Re: Nurse call system
PostPosted: Mon Feb 26, 2018 10:30 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2761
Hi,
I would remove the device application... generate a new empty project without device application. Then copy the whole stuff from your old application to the new one and check if this solve the issue.
BR
Edwin


Top
   
 Post subject: Re: Nurse call system
PostPosted: Tue Feb 27, 2018 6:09 pm 
Offline

Joined: Tue Dec 03, 2013 11:52 pm
Posts: 82
From the pictures above you have not wrote the values to the controller. You need to do from the menu "Debug -> Write Values" or "Debug -> Force Values" in order to actually change the variables to TRUE or FALSE. If it works you will see under VALUE change and the PREPARED value get set to empty.


Top
   
 Post subject: Re: Nurse call system
PostPosted: Thu Mar 01, 2018 10:32 pm 
Offline

Joined: Fri Feb 23, 2018 2:08 pm
Posts: 4
Hi.
Thank you for your goodwill.
I did update and dist-upgrade to RPi and reboot.Everything is up to date.
I created an empty application.I've re-created everything new on the newly empty created application.
No errors on build,no errors on login with Rpi.
if I set "true" in GPIO, it's true in GVL_IO and vice versa is the same.Aplication is running.I have no error at "messages".
I tried with both relay boards(see the picture with relayboards). The status on Modbus is the same with both relayboards.
Modbus Slave is Not Running.
I tried to change port (1-16) to both relayboards.What I did wrong?
Do I need the Raspberry Relay Board Driver or codes for them?
Green/White is Numato 16 USB relaboard and White/Blue is Sainsmart 16 USB relayboard.
I haven`t active "debug->write values" function.
Something I miss and I do not know what.


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


Top
   
 Post subject: Re: Nurse call system
PostPosted: Thu Mar 01, 2018 10:44 pm 
Offline

Joined: Fri Feb 23, 2018 2:08 pm
Posts: 4
In lsusb on RPi I see the ralayboard.Bus 001 Device 004 like USB-Serial adapter


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


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 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