en-us_products:mp_studio:user_protocol
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en-us_products:mp_studio:user_protocol [2026/11/10 19:26] – external edit 127.0.0.1 | en-us_products:mp_studio:user_protocol [2026/11/12 20:37] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 82: | Line 82: | ||
| {{ : | {{ : | ||
| - | - Select **Setting | + | - Select **Settings |
| - You can set the mode to '' | - You can set the mode to '' | ||
| Line 96: | Line 96: | ||
| ==== Opening the Window ==== | ==== Opening the Window ==== | ||
| - | * Select **Setting | + | * Select **Settings |
| * You can also open it with **Open User Protocol** in the number cell of '' | * You can also open it with **Open User Protocol** in the number cell of '' | ||
| * When you click an address used by the user protocol in the Inspector or the **Used Data** window, the window opens with the transaction, | * When you click an address used by the user protocol in the Inspector or the **Used Data** window, the window opens with the transaction, | ||
| - | {{ : | + | {{ : |
| You can edit the ladder while the window stays open. If a communication port has no definition, **+ Create on this port** and a list of templates are shown. | You can edit the ladder while the window stays open. If a communication port has no definition, **+ Create on this port** and a list of templates are shown. | ||
| Line 328: | Line 328: | ||
| - Set the **Trigger** of the transaction to **Ladder UPTRIG number** and enter the **Number** (1 to 255). If needed, also enter the **Done bit** and the **Status word**. | - Set the **Trigger** of the transaction to **Ladder UPTRIG number** and enter the **Number** (1 to 255). If needed, also enter the **Done bit** and the **Status word**. | ||
| - Click **OK**. | - Click **OK**. | ||
| - | - Add an '' | + | - Add an '' |
| {{ : | {{ : | ||
| Line 355: | Line 355: | ||
| | The ladder writes to an address that the user protocol receives into | Warning. The value written by the ladder is overwritten at the next reception. | | | The ladder writes to an address that the user protocol receives into | Warning. The value written by the ladder is overwritten at the next reception. | | ||
| | Receiving addresses overlap each other · a status word, done bit or receive counter overlaps a receiving address | Warning | | | Receiving addresses overlap each other · a status word, done bit or receive counter overlaps a receiving address | Warning | | ||
| - | | Addresses overlap those used by the Modbus device table or the [[: | + | | Addresses overlap those used by the Modbus device table or the [[: |
| | The port mode is not '' | | The port mode is not '' | ||
| | The PLC does not have enough RAM · the program does not fit in the flash | Error. Reduce the ports, transactions or frames, or the memory area sizes. | | | The PLC does not have enough RAM · the program does not fit in the flash | Error. Reduce the ports, transactions or frames, or the memory area sizes. | | ||
| | A frame is longer than 255 bytes or has more than 32 fields | Error | | | A frame is longer than 255 bytes or has more than 32 fields | Error | | ||
| - | | The send or receive buffer is smaller than a frame | Error. Enlarge the buffer in the **SERIAL** field of **Setting | + | | The send or receive buffer is smaller than a frame | Error. Enlarge the buffer in the **SERIAL** field of **Settings |
| - | Addresses used by the user protocol also appear in Find, Replace | + | Addresses used by the user protocol also appear in Find, Replace |
| ===== Simulation ===== | ===== Simulation ===== | ||
| Line 435: | Line 435: | ||
| In this example, a CO2 sensor connected to Comm Port 1 (9600 · 8-N-1) is read every second for its concentration, | In this example, a CO2 sensor connected to Comm Port 1 (9600 · 8-N-1) is read every second for its concentration, | ||
| - | - In **Setting | + | - In **Settings |
| - | - In **Setting | + | - In **Settings |
| - Click **OK**. Comm Port 1 changes to '' | - Click **OK**. Comm Port 1 changes to '' | ||
| - Add a rung to the ladder that sends the zero command. | - Add a rung to the ladder that sends the zero command. | ||
| Line 495: | Line 495: | ||
| | '' | | '' | ||
| | '' | | '' | ||
| - | | '' | + | | '' |
| | Requests go out but the device does not respond (gaps between characters) | The device may not accept gaps between characters. Turn off **Allow gaps between characters** for the port, download and check again. | | | Requests go out but the device does not respond (gaps between characters) | The device may not accept gaps between characters. Turn off **Allow gaps between characters** for the port, download and check again. | | ||
| | Only the end of a long barcode is stored | When a code longer than the maximum number of characters of the text field arrives, only its last characters, up to that maximum, are stored. Set **N** larger than the longest code. | | | Only the end of a long barcode is stored | When a code longer than the maximum number of characters of the text field arrives, only its last characters, up to that maximum, are stored. Set **N** larger than the longest code. | | ||
en-us_products/mp_studio/user_protocol.1794306404.txt.gz · Last modified: by 127.0.0.1
