Replacing Relays
المقبل ، ويتيح استخدام المجلس التشريعي الفلسطيني بدلا من الترحيل. (لاحظ أن هذا قد لا تكون فعالة جدا من حيث التكلفة لهذا التطبيق لكنها لا تثبت الأساسيات التي نحتاج إليها.) وأول ما هو ضروري هو خلق ما يسمى مخطط سلم. بعد رؤية عدد قليل من هذه فإنه أصبح من الواضح لماذا اسمها رسم تخطيطي سلم. لدينا لإنشاء واحدة من هذه لأنه ، للأسف ، والمجلس التشريعي لا يفهم سوى رسما تخطيطيا. ولا تعترف إلا رمز. لحسن الحظ معظم الشركات المحدودة العامة التي لديك برنامج تحويل المخططات سلم إلى رمز. وهذا يقينا من التعلم في الواقع رمز المجلس التشريعي.
أول خطوة لدينا لترجمة كافة العناصر اننا لم تستخدم الرموز في المجلس التشريعي الفلسطيني يفهم. المجلس التشريعي الفلسطيني لا يفهم مصطلحات مثل ، بدل الجرس ، والتتابع ، وما إلى ذلك يفضل المدخلات والمخرجات ، لفائف ، والاتصال ، وما إلى ذلك لا يهمه ما الإدخال أو جهاز الإخراج الفعلي هو في الواقع. انه يهتم فقط أن المدخلات والمخرجات ، أو ملف.
أولا نحن استبدال البطارية مع رمز. هذا الرمز هو شائع في جميع المخططات سلم. نرسم ما يسمى قضبان التوصيل. هذه نظرة ببساطة مثل اثنين من أشرطة عمودية. واحدة على كل جانب من الرسم التخطيطي. اعتقد من واحد بقي كما يجري الجهد والحق واحد كما يجري الأرض. اعتقد مزيد من تدفق (المنطق) الحالية بأنها من اليسار إلى اليمين.
المقبل نعطي المدخلات رمزا. في هذا المثال الأساسية لدينا واحدة مدخلات العالم الحقيقي. (أي التبديل) أن نعطي الإدخال التي سوف يتم ربطها التحول إلى ، إلى الرمز هو مبين أدناه. هذا ويمكن أيضا أن تستخدم رمز الاتصال من ترحيل.
الاتصال رمز الاتصال symbolA
المقبل نعطي النواتج رمزا. في هذا المثال نستخدم ناتج واحد (أي جرس). نعطي الإخراج الذي سيكون جرس متصلة فعليا إلى الرمز هو مبين أدناه. يستخدم هذا الرمز كما لفائف من التتابع.
لفائف رمز symbolA لفائف
العرض الايطالي هو العرض الخارجي لذلك نحن لا تضعها في سلم لدينا. المجلس التشريعي الفلسطيني الذي يهتم فقط عن الإخراج فإنه يتحول وليس على ما متصلة فعليا لذلك.
الخطوة الثانية يجب أن نقول للمجلس التشريعي الفلسطيني حيث يقع كل شيء. وبعبارة أخرى علينا أن نعطي جميع الأجهزة عنوان. أن يكون أين هو ذاهب التبديل متصلة فعليا إلى المجلس التشريعي الفلسطيني؟ ماذا عن الجرس؟ نبدأ مع خارطة الطريق فارغة في بلدة الشركات المحدودة العامة وإعطاء كل بند من عنوان. يمكن أن تجد أصدقائك إذا كنت لا تعرف عناوينهم؟ كنت تعرف أنهم يعيشون في المدينة نفسها ولكنها المنزل؟ بلدة المجلس التشريعي الفلسطيني لديه الكثير من المنازل (المدخلات والمخرجات) ولكن لدينا لمعرفة الذي يعيش فيه (ما الجهاز حيث يتم توصيل). سوف نحصل على مزيد من نظام العنونة في وقت لاحق. الشركات المصنعة المجلس التشريعي كل ذلك بطريقة مختلفة! الآن دعونا نقول أن مساهمتنا سوف يطلق "0000". وسوف يطلق الناتج "500".
الخطوة النهائية ، لدينا لتحويل التخطيطي في تسلسل منطقي للأحداث. هذا هو أسهل بكثير مما يبدو. برنامج نحن ذاهبون الى الكتابة يقول المجلس التشريعي الفلسطيني ما يجب القيام به عندما تحدث أحداث معينة. في مثالنا لدينا لنقول المجلس التشريعي ماذا تفعل عندما المشغل تشغيل التبديل. من الواضح اننا نريد الجرس الى صوت المجلس التشريعي الفلسطيني ولكن لا يعرف ذلك. انه جهاز غبي جدا ، أليس كذلك!
أكمل سلم الرسم
في الصورة أعلاه المخطط النهائي المحولة. لاحظ أن قضينا تتابع العالم الحقيقي من الحاجة رمزا. في الواقع انه "استنتاج" من الرسم التخطيطي. هاه؟ لا تقلق ، سترى ما نعنيه كما نفعل المزيد من الأمثلة.
الشرح بالصور بالانجليزيه
Next, lets use a plc in place of the relay. (Note that this might not be very cost effective for this application but it does demonstrate the basics we need.) The first thing that's necessary is to create what's called a ladder diagram. After seeing a few of these it will become obvious why its called a ladder diagram. We have to create one of these because, unfortunately, a plc doesn't understand a schematic diagram. It only recognizes code. Fortunately most PLCs have software which convert ladder diagrams into code. This shields us from actually learning the plc's code.
First step- We have to translate all of the items we're using into symbols the plc understands. The plc doesn't understand terms like switch, relay, bell, etc. It prefers input, output, coil, contact, etc. It doesn't care what the actual input or output device actually is. It only cares that its an input or an output.
First we replace the battery with a symbol. This symbol is common to all ladder diagrams. We draw what are called bus bars. These simply look like two vertical bars. One on each side of the diagram. Think of the left one as being + voltage and the right one as being ground. Further think of the current (logic) flow as being from left to right.
Next we give the inputs a symbol. In this basic example we have one real world input. (i.e. the switch) We give the input that the switch will be connected to, to the symbol shown below. This symbol can also be used as the contact of a relay.
A contact symbolNext we give the outputs a symbol. In this example we use one output (i.e. the bell). We give the output that the bell will be physically connected to the symbol shown below. This symbol is used as the coil of a relay.
A coil symbolThe AC supply is an external supply so we don't put it in our ladder. The plc only cares about which output it turns on and not what's physically connected to it.
Second step- We must tell the plc where everything is located. In other words we have to give all the devices an address. Where is the switch going to be physically connected to the plc? How about the bell? We start with a blank road map in the PLCs town and give each item an address. Could you find your friends if you didn't know their address? You know they live in the same town but which house? The plc town has a lot of houses (inputs and outputs) but we have to figure out who lives where (what device is connected where). We'll get further into the addressing scheme later. The plc manufacturers each do it a different way! For now let's say that our input will be called "0000". The output will be called "500".
Final step- We have to convert the schematic into a logical sequence of events. This is much easier than it sounds. The program we're going to write tells the plc what to do when certain events take place. In our example we have to tell the plc what to do when the operator turns on the switch. Obviously we want the bell to sound but the plc doesn't know that. It's a pretty stupid device, isn't it!

The picture above is the final converted diagram. Notice that we eliminated the real world relay from needing a symbol. It's actually "inferred" from the diagram. Huh? Don't worry, you'll see what we mean as we do more examples.
ليست هناك تعليقات:
إرسال تعليق