4/7/2023 5:28 AM | |
Joined: 3/24/2023 Last visit: 7/1/2024 Posts: 14 Rating:
|
I’m not sure if this post should be under Projects or Communication? I would like to be able to send a SMS from one CIM to another CIM that will transfer one Byte of variable memory representing the state of the inputs of LOGO!1 to set the outputs in LOGO!2. I can easily turn on or off a single output by sending one message to turn it ON and another message to turn it OFF. The CIM is severely limited in the number of messages that can be sent, so if I could send a single message with one Byte that would turn on or off 8 at a time, or a single message with one Word that would turn on or off 16 at a time, I could greatly expand the usefulness of the CIM. I have been experimenting with this for several days without success. I only have one CIM at this time, so I have been using it to send to a mobile phone, then from the mobile phone back to the CIM. My test program has no function except to test this concept. I have a program made in Diagram mode with 4 unused inputs and 8 unused outputs. It works the same even I use a blank program with no blocks showing. The nice thing about this is that I don’t need to tie up all eight Bits in the Byte. If I need to use some of the Blocks in my program, the LOGO! ignores the request to change the status of the used Blocks. I can transfer one Byte from the LOGO! VM, representing I1 through I8, to V0 in the CIM UDM. I can send this to my mobile phone. I get a text message like “I=0x13(b)” which is the HEX value of the Byte meaning that I1, I2, and I5 in the LOGO! are on (high). At the same time I can transfer this to V1 in the CIM UDM, which immediately gets sent to the LOGO! to activate Q1, Q2, and Q5. So I know I can get the data in and out of the LOGO!. In other applications, I can send a SMS from the CIM, and I can send a SMS to the CIM to trigger an event. What I can’t do is send a SIM to set the value of V1. I deactivate the direct transfer of the Byte from V0 to V1 described above, then set it up so the transfer to V1 is triggered by an incoming SMS. But I just can’t get this part to work. I’ve tried as many combinations of changing the message text and the data binding as I can think of. The attachment below shows where I left off after several days of setting this up differently. In the attached illustration, Data Binding1 represents the direct transfer without trying to remotely trigger the event. This works. Data Binding2 represents one of my tries to trigger the transfer with an incoming SMS text. This does not work. I would greatly appreciate it if someone can show me how to make this work. AttachmentTEST.pdf (385 Downloads) |
Last edited by: Jen_Moderator at: 04/09/2023 07:18:41Text formatting optimized. |
|
Follow us on