Unbox + How To: Ard...
 
Notifications
Clear all

Unbox + How To: Arduino Shield For SIEMENS SIMATIC IOT2040/IOT2050 | IBCON

12 Posts
3 Users
2 Reactions
1,035 Views
Bee-Co
(@bee-co)
Member Admin
Joined: 5 years ago
Posts: 641
Topic starter  

Unbox + How To: Arduino Shield For SIEMENS SIMATIC IOT2040/IOT2050

 

Youtube: IBCONOfficial

 

 

 

 


   
Quote
(@anurak1510)
Active Member Registered
Joined: 6 months ago
Posts: 5
 

ผมซื้อ IOT2000 จาก IBcon มาติดตั้งกับ IOT2050 แต่พอซิม 4-20mA ค่าที่ show ไม่ linear โดย Monitor จาก Node-red
อยากทราบวิธีการอ่านค่า และการ set range ครับ

This post was modified 6 months ago by Anurak1510

   
ReplyQuote
Bee-Co
(@bee-co)
Member Admin
Joined: 5 years ago
Posts: 641
Topic starter  

สำหรับ  การอ่านค่า analog ของ iot2050 จะมีอยู่ 2 channel ครับ ถ้าเป็น แรงดันจะรับ 0-10V ถ้าเป็นกระแส 0-20 mA โดยจะมีอย่างละ 2 channel คือ U0 M0 I0 และ U1 M1 I1    U  จะเป็น แรงดัน และ I จะเป็นกระแส M จะเป็น ขาคอมมอน สำหรับการอ่านค่าใน  node-red ให้เลือกเป็น A0 A1 ตาม channel ครับ


   
Anurak1510 reacted
ReplyQuote
(@anurak1510)
Active Member Registered
Joined: 6 months ago
Posts: 5
 

@bee-co ขอบคุณครับ พอดีผมใช้ multimeter sim 0-20mA เข้าที่ขา I1 และ debug ดูค่าผ่าน Playload ค่ามันแปลกๆไม่ linear อยากทราบว่าค่า Raw min/max เท่าไร่ครับ และถ้าผมจะ scale range ตัองทำอย่างไร

ยกตัวอย่างเช่น temp -10C (4mA) ถึง 150C(20mA) 


   
ReplyQuote
(@ibcon-engineer-1)
Member
Joined: 4 years ago
Posts: 62
 

@anurak1510 ตอนนี้ผมได้ลองทดสอบแลัว ถ้าเป็น analog I1 ผมใช้ Analog Generator 4-20mA ค่า min 800 ค่า max 4045 (Resolution 12 bit) ในการอ่านค่าบน node-red ใช้ analogue node เลือก pin A3 ครับ 
ในการ scale range สามารถใช้ node function บน node-red ในการเขียน สมการคำนวณได้ครับ


   
Anurak1510 reacted
ReplyQuote
(@anurak1510)
Active Member Registered
Joined: 6 months ago
Posts: 5
 

@ibcon-engineer-1 ตอนนี้ Sim 4-20 mA ค่าออกมาแปลกๆครับ ไม่ใช่ min 800 ค่า max 4045 พอสอบถามเพิ่มเติมหน่อยครับ ต้อง config ตรงไหนเพิ่มไหมครับ

This post was modified 2 months ago by Anurak1510

   
ReplyQuote
(@ibcon-engineer-1)
Member
Joined: 4 years ago
Posts: 62
 

ของดูภาพการต่อวงจรที่ตัว arduino shield หน่อยครับ

 


   
ReplyQuote
(@anurak1510)
Active Member Registered
Joined: 6 months ago
Posts: 5
 

@ibcon-engineer-1 ต่อตามนี้เลยครับ

This post was modified 2 months ago 6 times by Anurak1510

   
ReplyQuote
(@ibcon-engineer-1)
Member
Joined: 4 years ago
Posts: 62
 

ลองเช็ค jumpper ที่ผมวงกลมครับ 


   
ReplyQuote
(@ibcon-engineer-1)
Member
Joined: 4 years ago
Posts: 62
 

ต้องย้าย jumpper ไปคู่ VIN แบบที่ผมวงกลมไปครับ


   
ReplyQuote
(@anurak1510)
Active Member Registered
Joined: 6 months ago
Posts: 5
 

@ibcon-engineer-1 ได้แล้วครับ ย้าย jumper ได้เลย ขอบคุณมากครับ 🙂

This post was modified 2 months ago 3 times by Anurak1510

   
ReplyQuote
(@ibcon-engineer-1)
Member
Joined: 4 years ago
Posts: 62
 

โอเครครับ


   
ReplyQuote