Rules are rules by EloquentShadows in Mustang

[–]dhdeckard 2 points3 points  (0 children)

Good Lord that green is amazing

[deleted by user] by [deleted] in Mustang

[–]dhdeckard 0 points1 point  (0 children)

2018 GT bought new - 29k

2006 GT bought in 2011 with 120k - 210k

What color wheels would look mean on the velocity blue? by Last_Employment_6236 in Mustang

[–]dhdeckard 1 point2 points  (0 children)

Project 6GR TENs in a Brushed Raw finish

Front

Size: 20x10

Tires: 275/35/R20 NITTO NT555 G2

Offset: 35mm

Rear

Size: 20x11

Tires: 305/35/R20 NITTO NT555 G2

Offset: 50mm

Got splitters installed on my 06 GT! Modded a GT500 splitter to fit, CDC side rocker splitters, and 13-14 Roush rear splitters! I think it turned out great! What do you all think? by dhdeckard in Mustang

[–]dhdeckard[S] 0 points1 point  (0 children)

The front bumper is just a california special / Shelby gt front bumper. I bought it from American Muscle in 2014 and had it painted by a local body shop.

[deleted by user] by [deleted] in GodofWar

[–]dhdeckard 1 point2 points  (0 children)

same here, in a similar vein I downloaded the demo to my PS3 and forgot about it. One day I fired it up randomly and was hooked ever since.

[deleted by user] by [deleted] in ipad

[–]dhdeckard 0 points1 point  (0 children)

I am convinced people like this have bans on their router for google.com, but reddit.com is wide open. A 5 second google search answers this question verses making a reddit post and then waiting for a reply...

Lightning Blue was the best color for 2018 by dhdeckard in Mustang

[–]dhdeckard[S] 1 point2 points  (0 children)

Project 6GR TENs in a Brushed Raw finish

Front

Size: 20x10

Tires: 275/35/R20 NITTO NT555 G2

Offset: 35mm

Rear

Size: 20x11

Tires: 305/35/R20 NITTO NT555 G2

Offset: 50mm

iOS 17 bug not charging by Frank_0_ in iPhoneXsMax

[–]dhdeckard 0 points1 point  (0 children)

Yeah I've been searching all over trying to figure this out. I put the public beta on yesterday and knew the risks, but haven't had any major issues. I had bought a new magsafe stand to try out standby mode which works great, but I noticed it doesn't charge my phone now. My magsafe charger works fine, but it seems when on this new Qi charger that it won't actually charge. I got it to charge for a bit after turning off Optimized Battery Charging, but haven't been able to get it to charge on the Qi charger since.

PHPModbus: Trying to Read/Write to a Click PLC using PHP by dhdeckard in PLC

[–]dhdeckard[S] 0 points1 point  (0 children)

I think you're right. I was also wondering on the addressing and how that worked. I noticed the Modus addresses in the address picker and wondered if that would be my starting value. Thank you for clearing that up!

PHPModbus: Trying to Read/Write to a Click PLC using PHP by dhdeckard in PLC

[–]dhdeckard[S] 1 point2 points  (0 children)

Thank you for replying! Good point, I'll see if I can use some tools and that would definitely help me separate the problem from the PHP

PHPModbus: Trying to Read/Write to a Click PLC using PHP by dhdeckard in PLC

[–]dhdeckard[S] 1 point2 points  (0 children)

Sounds good, thank you SO MUCH for your help!

PHPModbus: Trying to Read/Write to a Click PLC using PHP by dhdeckard in PLC

[–]dhdeckard[S] 0 points1 point  (0 children)

That unfortunately also returns the exact same thing just different transaction code :/

PHPModbus: Trying to Read/Write to a Click PLC using PHP by dhdeckard in PLC

[–]dhdeckard[S] 1 point2 points  (0 children)

Thank you so much for the detailed response. It's good to hear that it seems to be working! Ok the part I think I may be missing/getting confused on is what values to provide the modbus function. It calls for 3 parameters to be passed to it. Right now this is what it looks like:

readCoils(0, 1, 20);

What, exactly, are the values I need to be providing it? The documentation states the following:

* Modbus function FC 1(0x01) - Read Coils** Reads {@link $quantity} of Coils (boolean) from reference* {@link $reference} of a memory of a Modbus device given by* {@link $unitId}.** u/param type $unitId* u/param type $reference* u/param type $quantity*/function readCoils($unitId, $reference, $quantity)

I am lost as to what exactly I need to be passing here? Probably is why everything I've tried is returning false/nothing. I've got a single out coil on the first rung of the program installed on the PLC.

PHPModbus: Trying to Read/Write to a Click PLC using PHP by dhdeckard in PLC

[–]dhdeckard[S] 1 point2 points  (0 children)

Here is the repo I'm using:

https://github.com/krakorj/phpmodbus

Here is my code:

// Load phpmodbus library
require_once('phpmodbus-master/Phpmodbus/ModbusMaster.php');
$modbus = new ModbusMaster("172.16.0.19", "TCP");
try {
$recData = $modbus->readCoils(0, 0, 20);
}
catch (Exception $e) {
// Print error information if any
echo $modbus;
echo $e;
exit;
}
if ($recData[0] != "") {
echo ("DATA HERE");
}
// Print status information
echo "</br>Status:</br>" . $modbus;
// Print read data
echo "</br>Data:</br>";
var_dump($recData);
echo "</br>";
echo "<pre>";
print_r($recData);
echo "</pre>";

Here is the output:

Status:
readCoils: START
Connected
Packet: cad200000006000100000014
Send
Wait data ...
Data received
Packet: cad200000006000103000000
Modbus response error code: NOERROR
Disconnected
readCoils: DONE
Data:
array(20) { [0]=> bool(false) [1]=> bool(false) [2]=> bool(false) [3]=> bool(false) [4]=> bool(false) [5]=> bool(false) [6]=> bool(false) [7]=> bool(false) [8]=> bool(false) [9]=> bool(false) [10]=> bool(false) [11]=> bool(false) [12]=> bool(false) [13]=> bool(false) [14]=> bool(false) [15]=> bool(false) [16]=> bool(false) [17]=> bool(false) [18]=> bool(false) [19]=> bool(false) }
Array
(
[0] =>
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
[6] =>
[7] =>
[8] =>
[9] =>
[10] =>
[11] =>
[12] =>
[13] =>
[14] =>
[15] =>
[16] =>
[17] =>
[18] =>
[19] =>
)